Skip to content

Commit

Permalink
glsl: better fix for incorrect SM1.1 defines.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 13, 2020
1 parent 54a5dcb commit 2009682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiles/mojoshader_profile_glsl.c
Expand Up @@ -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);
Expand Down

0 comments on commit 2009682

Please sign in to comment.