Fix error when compiling shaders with include directives
This commit is contained in:
parent
3819548abc
commit
81be9606f4
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue