Archived
1
Fork 0

Fix error when compiling shaders with include directives

This commit is contained in:
redstrate 2020-08-12 18:13:53 -04:00
parent 3819548abc
commit 81be9606f4

View file

@ -163,6 +163,7 @@ const std::vector<unsigned int> CompileGLSL(const std::string& filename, EShLang
EShMessages messages = (EShMessages) (EShMsgSpvRules);
DirStackFileIncluder includer;
includer.pushExternalLocalDirectory(file::get_domain_path(file::Domain::Internal));
if (!Shader.parse(&Resources, 100, false, (EShMessages)0, includer)) {
std::cout << Shader.getInfoLog() << std::endl;