From b87854bc66533c430e1983d6a114e837ccbd0ddb Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 6 Aug 2022 22:12:28 -0700 Subject: [PATCH] GLES: Correct semantic name for Draw2D. Draw hardcodes the names. Fixes #15799. --- GPU/Common/Draw2D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPU/Common/Draw2D.cpp b/GPU/Common/Draw2D.cpp index a9ba00ab4f..d522353b6d 100644 --- a/GPU/Common/Draw2D.cpp +++ b/GPU/Common/Draw2D.cpp @@ -28,7 +28,7 @@ static const InputDef inputs[2] = { { "vec2", "a_position", Draw::SEM_POSITION }, - { "vec2", "a_texcoord", Draw::SEM_TEXCOORD0 }, + { "vec2", "a_texcoord0", Draw::SEM_TEXCOORD0 }, }; static const VaryingDef varyings[1] = { @@ -49,7 +49,7 @@ void GenerateDraw2DVS(char *buffer, const ShaderLanguageDesc &lang) { writer.BeginVSMain(inputs, Slice::empty(), varyings); - writer.C(" v_texcoord = a_texcoord;\n"); // yes, this should be right. Should be 2.0 in the far corners. + writer.C(" v_texcoord = a_texcoord0;\n"); // yes, this should be right. Should be 2.0 in the far corners. writer.C(" gl_Position = vec4(a_position, 0.0, 1.0);\n"); writer.F(" gl_Position.y *= %s1.0;\n", lang.viewportYSign);