Printing preprocessed shaders (not a supported path): Fix #1490: strings

Put quote marks around strings, due to a change in how tokenization works.
This commit is contained in:
John Kessenich 2018-09-10 11:37:38 -06:00
parent 1ca0f8e8eb
commit 546b78854a
4 changed files with 21 additions and 0 deletions

2
glslang/Public/ShaderLang.h Normal file → Executable file
View file

@ -532,6 +532,8 @@ public:
return parse(builtInResources, defaultVersion, ENoProfile, false, forwardCompatible, messages, includer);
}
// NOTE: Doing just preprocessing to obtain a correct preprocessed shader string
// is not an officially supported or fully working path.
bool preprocess(const TBuiltInResource* builtInResources,
int defaultVersion, EProfile defaultProfile, bool forceDefaultVersionAndProfile,
bool forwardCompatible, EShMessages message, std::string* outputString,