profiles/mojoshader_profile_glsl.c
changeset 1215 8e9fb483f4d4
parent 1214 5887634ea695
child 1216 9d725de6c61c
equal deleted inserted replaced
1214:5887634ea695 1215:8e9fb483f4d4
   949                     {
   949                     {
   950                         usage_str = "gl_FrontSecondaryColor";
   950                         usage_str = "gl_FrontSecondaryColor";
   951                     } // else if
   951                     } // else if
   952                     break;
   952                     break;
   953                 case MOJOSHADER_USAGE_FOG:
   953                 case MOJOSHADER_USAGE_FOG:
   954                     usage_str = "gl_FogFragCoord";
   954 #if SUPPORT_PROFILE_GLSLES
       
   955                     if (support_glsles(ctx))
       
   956                         break; // GLSL ES does not have gl_FogFragCoord
       
   957 #endif
       
   958                     if (index == 0)
       
   959                     {
       
   960                         usage_str = "gl_FogFragCoord";
       
   961                     } // if
   955                     break;
   962                     break;
   956                 case MOJOSHADER_USAGE_TEXCOORD:
   963                 case MOJOSHADER_USAGE_TEXCOORD:
   957 #if SUPPORT_PROFILE_GLSLES
   964 #if SUPPORT_PROFILE_GLSLES
   958                     if (support_glsles(ctx))
   965                     if (support_glsles(ctx))
   959                         break; // GLSL ES does not have gl_TexCoord
   966                         break; // GLSL ES does not have gl_TexCoord