glsl: better fix for incorrect SM1.1 defines.
--- 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);