Merge pull request #1455 from TiemoJung/nullpointer_crash_fix
Fixes a crash when in/out varying variable had no semantic name and a…
This commit is contained in:
commit
6e382f63b4
1 changed files with 8 additions and 2 deletions
|
|
@ -331,8 +331,14 @@ struct TResolverInOutAdaptor
|
|||
ent.symbol->getType(),
|
||||
ent.live);
|
||||
} else {
|
||||
TString errorMsg = "Invalid shader In/Out variable semantic: ";
|
||||
errorMsg += ent.symbol->getType().getQualifier().semanticName;
|
||||
TString errorMsg;
|
||||
if (ent.symbol->getType().getQualifier().semanticName != nullptr) {
|
||||
errorMsg = "Invalid shader In/Out variable semantic: ";
|
||||
errorMsg += ent.symbol->getType().getQualifier().semanticName;
|
||||
} else {
|
||||
errorMsg = "Invalid shader In/Out variable: ";
|
||||
errorMsg += ent.symbol->getName();
|
||||
}
|
||||
infoSink.info.message(EPrefixInternalError, errorMsg.c_str());
|
||||
error = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue