mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
shaders: enable validation for pixel shader inputs that are missing from the vertex shader.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user