profiles/mojoshader_profile_glsl.c
changeset 1222 c6e847dd9d4b
parent 1221 012dec2787aa
child 1255 0135d797e287
equal deleted inserted replaced
1221:012dec2787aa 1222:c6e847dd9d4b
   955                 case MOJOSHADER_USAGE_FOG:
   955                 case MOJOSHADER_USAGE_FOG:
   956 #if SUPPORT_PROFILE_GLSLES
   956 #if SUPPORT_PROFILE_GLSLES
   957                     if (support_glsles(ctx))
   957                     if (support_glsles(ctx))
   958                         break; // GLSL ES does not have gl_FogFragCoord
   958                         break; // GLSL ES does not have gl_FogFragCoord
   959 #endif
   959 #endif
   960 #if SUPPORT_PROFILE_GLSLES
   960                     if (index == 0)
   961                     const int skipFogFragCoord = support_glsles(ctx) || (index > 0);
       
   962 #else
       
   963                     const int skipFogFragCoord = (index > 0);
       
   964 #endif
       
   965                     if (!skipFogFragCoord)
       
   966                     {
   961                     {
   967                         usage_str = "gl_FogFragCoord";
   962                         usage_str = "gl_FogFragCoord";
   968                     } // if
   963                     } // if
   969                     else
   964                     else
   970                     {
   965                     {