glsl: better fix for incorrect SM1.1 defines.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 13 Oct 2020 01:23:44 -0400
changeset 1310 9f3b98d12a37
parent 1309 b7f37f047a81
child 1311 448b82b26acb
glsl: better fix for incorrect SM1.1 defines.
profiles/mojoshader_profile_glsl.c
--- a/profiles/mojoshader_profile_glsl.c	Tue Oct 13 01:23:19 2020 -0400
+++ b/profiles/mojoshader_profile_glsl.c	Tue Oct 13 01:23:44 2020 -0400
@@ -1058,7 +1058,7 @@
                 // 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);