Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
gl_Position only works for POSITION0
  • Loading branch information
flibitijibibo committed Mar 6, 2019
1 parent 1cf60c0 commit 4c1c597
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mojoshader.c
Expand Up @@ -2623,7 +2623,10 @@ static void emit_GLSL_attribute(Context *ctx, RegisterType regtype, int regnum,
switch (usage)
{
case MOJOSHADER_USAGE_POSITION:
usage_str = "gl_Position";
if (index == 0)
{
usage_str = "gl_Position";
} // if
break;
case MOJOSHADER_USAGE_POINTSIZE:
usage_str = "gl_PointSize";
Expand Down

0 comments on commit 4c1c597

Please sign in to comment.