From 2009682b62327fe208399a175adaf30c56528025 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 13 Oct 2020 01:23:44 -0400 Subject: [PATCH] glsl: better fix for incorrect SM1.1 defines. --- profiles/mojoshader_profile_glsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/mojoshader_profile_glsl.c b/profiles/mojoshader_profile_glsl.c index 0059f33..daa7994 100644 --- a/profiles/mojoshader_profile_glsl.c +++ b/profiles/mojoshader_profile_glsl.c @@ -1058,7 +1058,7 @@ void emit_GLSL_attribute(Context *ctx, RegisterType regtype, int regnum, // ps_1_1 does a different hack for this attribute. // Refer to emit_GLSL_global()'s REG_TYPE_ADDRESS code. if (!shader_version_atleast(ctx, 1, 4)) - usage_str = ""; // just make sure this isn't NULL. + return; else if (index < 4) // gl_TexCoord[4+] is unreliable! { snprintf(index_str, sizeof (index_str), "%u", (uint) index);