Skip to content

Commit

Permalink
draw validation: clarify that a type mismatch involves MainTex
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Dec 24, 2024
1 parent 25631eb commit aa93494
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 @@ -988,7 +988,7 @@ void Shader::validateDrawState(PrimitiveType primtype, Texture *maintex) const
}

if (!isResourceBaseTypeCompatible(info->dataBaseType, getDataBaseType(maintex->getPixelFormat())))
throw love::Exception("Texture's data format base type must match the uniform variable declared in the shader (float, int, or uint).");
throw love::Exception("Main texture's data format base type must match the MainTex declaration in the shader (float, int, or uint).");

if (info->isDepthSampler != maintex->getSamplerState().depthSampleMode.hasValue)
{
Expand Down

0 comments on commit aa93494

Please sign in to comment.