Skip to content

Commit

Permalink
MSVC buildfix (also removes redundant ES check)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpydog committed Dec 16, 2019
1 parent 135aa18 commit e5cc3e8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions profiles/mojoshader_profile_glsl.c
Expand Up @@ -957,12 +957,7 @@ void emit_GLSL_attribute(Context *ctx, RegisterType regtype, int regnum,
if (support_glsles(ctx))
break; // GLSL ES does not have gl_FogFragCoord
#endif
#if SUPPORT_PROFILE_GLSLES
const int skipFogFragCoord = support_glsles(ctx) || (index > 0);
#else
const int skipFogFragCoord = (index > 0);
#endif
if (!skipFogFragCoord)
if (index == 0)
{
usage_str = "gl_FogFragCoord";
} // if
Expand Down

0 comments on commit e5cc3e8

Please sign in to comment.