From aa93494f5402494eeeb01f100fa7c6220f2054e2 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Tue, 24 Dec 2024 18:50:11 -0400 Subject: [PATCH] draw validation: clarify that a type mismatch involves MainTex --- 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 567a1b092..26801d402 100644 --- a/src/modules/graphics/Shader.cpp +++ b/src/modules/graphics/Shader.cpp @@ -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) {