HLSL: Fix #1655; use "" for nullptr file names. Needs test cases.
This commit is contained in:
parent
d72f488cc6
commit
b2395e9ddf
3 changed files with 6 additions and 5 deletions
2
hlsl/hlslParseHelper.cpp
Executable file → Normal file
2
hlsl/hlslParseHelper.cpp
Executable file → Normal file
|
|
@ -133,7 +133,7 @@ bool HlslParseContext::parseShaderStrings(TPpContext& ppContext, TInputScanner&
|
|||
// Print a message formated such that if you click on the message it will take you right to
|
||||
// the line through most UIs.
|
||||
const glslang::TSourceLoc& sourceLoc = input.getSourceLoc();
|
||||
infoSink.info << sourceLoc.name->c_str() << "(" << sourceLoc.line << "): error at column " << sourceLoc.column
|
||||
infoSink.info << sourceLoc.getFilenameStr() << "(" << sourceLoc.line << "): error at column " << sourceLoc.column
|
||||
<< ", HLSL parsing failed.\n";
|
||||
++numErrors;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue