do not print file name in #line directives, some GLSL compilers don't allow anything after #line N

This commit is contained in:
Aras Pranckevicius 2012-08-31 15:08:43 +03:00
Родитель f3b060ad6c
Коммит 4fba27258e
1 изменённых файлов: 5 добавлений и 6 удалений

Просмотреть файл

@ -55,12 +55,11 @@ inline void OutputLineDirective(std::stringstream& s, const TSourceLoc& l)
s << "#line " << l.line; s << "#line " << l.line;
// GLSL spec (1.10 & 1.20) doesn't allow printing file name here; only an integer "string number". // 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)
if(l.file) //{
{ // s << " // ";
s << " // "; // s << l.file;
s << l.file; //}
}
s << '\n'; s << '\n';
} }