mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
draw validation: clarify that a type mismatch involves MainTex
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user