diff --git a/src/modules/graphics/Shader.cpp b/src/modules/graphics/Shader.cpp index c06786eab..bdecbc54a 100644 --- a/src/modules/graphics/Shader.cpp +++ b/src/modules/graphics/Shader.cpp @@ -1117,7 +1117,7 @@ bool Shader::validateInternal(StrongRef stages[], std::string &err, program.addShader(stages[i]->getGLSLangValidationShader()); } - if (!program.link(EshMsgCrossStageIO)) + if (!program.link((EShMessages)(EshMsgCrossStageIO | EshMsgOverlappingLocations))) { err = "Cannot compile shader:\n\n" + std::string(program.getInfoLog()) + "\n" + std::string(program.getInfoDebugLog()); return false; diff --git a/src/modules/graphics/ShaderStage.cpp b/src/modules/graphics/ShaderStage.cpp index 566b8b937..783e6a691 100644 --- a/src/modules/graphics/ShaderStage.cpp +++ b/src/modules/graphics/ShaderStage.cpp @@ -58,7 +58,7 @@ ShaderStage::ShaderStage(Graphics */*gfx*/, ShaderStageType stage, const std::st bool forcedefault = false; bool forwardcompat = true; - if (!glslangShader->parse(GetResources(), defaultversion, defaultprofile, forcedefault, forwardcompat, EShMsgSuppressWarnings)) + if (!glslangShader->parse(GetResources(), defaultversion, defaultprofile, forcedefault, forwardcompat, (EShMessages)(EShMsgSuppressWarnings | EshMsgOverlappingLocations))) { const char *stagename = "unknown"; getConstant(stage, stagename);