profiles/mojoshader_profile_glsl.c
changeset 1319 cb1194078e48
parent 1310 9f3b98d12a37
child 1320 f9036699b53a
equal deleted inserted replaced
1318:ff4eb6d9c9c2 1319:cb1194078e48
   933                     {
   933                     {
   934                         usage_str = "gl_Position";
   934                         usage_str = "gl_Position";
   935                     } // if
   935                     } // if
   936                     break;
   936                     break;
   937                 case MOJOSHADER_USAGE_POINTSIZE:
   937                 case MOJOSHADER_USAGE_POINTSIZE:
   938                     usage_str = "gl_PointSize";
   938                     if (index == 0)
       
   939                     {
       
   940                         usage_str = "gl_PointSize";
       
   941                     } // if
       
   942                     else
       
   943                     {
       
   944                         push_output(ctx, &ctx->globals);
       
   945 #if SUPPORT_PROFILE_GLSLES
       
   946                         if (support_glsles(ctx))
       
   947                             output_line(ctx, "varying highp float io_%i_%i;", usage, index);
       
   948                         else
       
   949 #endif
       
   950                         output_line(ctx, "varying float io_%i_%i;", usage, index);
       
   951                         output_line(ctx, "#define %s io_%i_%i", var, usage, index);
       
   952                         pop_output(ctx);
       
   953                         return;
       
   954                     }
   939                     break;
   955                     break;
   940                 case MOJOSHADER_USAGE_COLOR:
   956                 case MOJOSHADER_USAGE_COLOR:
   941 #if SUPPORT_PROFILE_GLSLES
   957 #if SUPPORT_PROFILE_GLSLES
   942                     if (support_glsles(ctx))
   958                     if (support_glsles(ctx))
   943                         break; // GLSL ES does not have gl_FrontColor
   959                         break; // GLSL ES does not have gl_FrontColor