From 31f27693bc30446ec06428282d316641dab1c7e7 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Wed, 31 Jul 2024 19:42:43 -0300 Subject: [PATCH] shaders: enable validation for pixel shader inputs that are missing from the vertex shader. --- src/modules/graphics/Shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/Shader.cpp b/src/modules/graphics/Shader.cpp index 0cdb96068..519720d6a 100644 --- a/src/modules/graphics/Shader.cpp +++ b/src/modules/graphics/Shader.cpp @@ -1112,7 +1112,7 @@ bool Shader::validateInternal(StrongRef stages[], std::string &err, program.addShader(stages[i]->getGLSLangValidationShader()); } - if (!program.link(EShMsgDefault)) + if (!program.link(EshMsgCrossStageIO)) { err = "Cannot compile shader:\n\n" + std::string(program.getInfoLog()) + "\n" + std::string(program.getInfoDebugLog()); return false;