mojoshader.c
changeset 1193 4decf307c228
parent 1190 51de95edd697
child 1199 b8ece252a201
equal deleted inserted replaced
1192:706e4d246ca1 1193:4decf307c228
  2621         else if (regtype == REG_TYPE_OUTPUT)
  2621         else if (regtype == REG_TYPE_OUTPUT)
  2622         {
  2622         {
  2623             switch (usage)
  2623             switch (usage)
  2624             {
  2624             {
  2625                 case MOJOSHADER_USAGE_POSITION:
  2625                 case MOJOSHADER_USAGE_POSITION:
  2626                     usage_str = "gl_Position";
  2626                     if (index == 0)
       
  2627                     {
       
  2628                         usage_str = "gl_Position";
       
  2629                     } // if
  2627                     break;
  2630                     break;
  2628                 case MOJOSHADER_USAGE_POINTSIZE:
  2631                 case MOJOSHADER_USAGE_POINTSIZE:
  2629                     usage_str = "gl_PointSize";
  2632                     usage_str = "gl_PointSize";
  2630                     break;
  2633                     break;
  2631                 case MOJOSHADER_USAGE_COLOR:
  2634                 case MOJOSHADER_USAGE_COLOR: