Skip to content

Commit

Permalink
shaders: enable validation for pixel shader inputs that are missing f…
Browse files Browse the repository at this point in the history
…rom the vertex shader.
  • Loading branch information
slime73 committed Jul 31, 2024
1 parent 42f85b8 commit 31f2769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/graphics/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ bool Shader::validateInternal(StrongRef<ShaderStage> 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;
Expand Down

0 comments on commit 31f2769

Please sign in to comment.