Get rid of auto variable in glslang.cpp

This commit is contained in:
twinaphex 2020-05-21 05:45:44 +02:00
parent 52e8c102fc
commit a9cf718e75

View File

@ -400,7 +400,9 @@ bool glslang::compile_spirv(const string &source, Stage stage,
EShMessages messages = static_cast<EShMessages>(EShMsgDefault | EShMsgVulkanRules | EShMsgSpvRules);
auto forbid_include = glslang::TShader::ForbidIncluder();
glslang::TShader::ForbidIncluder forbid_include =
glslang::TShader::ForbidIncluder();
if (!shader.preprocess(&process.GetResources(),
100, ENoProfile, false, false,
messages, &msg, forbid_include))