do not print file name in #line directives, some GLSL compilers don't allow anything after #line N
This commit is contained in:
Родитель
f3b060ad6c
Коммит
4fba27258e
|
@ -55,12 +55,11 @@ inline void OutputLineDirective(std::stringstream& s, const TSourceLoc& l)
|
|||
s << "#line " << l.line;
|
||||
|
||||
// GLSL spec (1.10 & 1.20) doesn't allow printing file name here; only an integer "string number".
|
||||
// So just print file name as a comment.
|
||||
if(l.file)
|
||||
{
|
||||
s << " // ";
|
||||
s << l.file;
|
||||
}
|
||||
//if(l.file)
|
||||
//{
|
||||
// s << " // ";
|
||||
// s << l.file;
|
||||
//}
|
||||
|
||||
s << '\n';
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче