gl_Position only works for POSITION0
authorEthan Lee <flibitijibibo@flibitijibibo.com>
Wed, 06 Mar 2019 15:09:49 -0500
changeset 1193 4decf307c228
parent 1192 706e4d246ca1
child 1194 3948d7f5b4ff
gl_Position only works for POSITION0
mojoshader.c
--- a/mojoshader.c	Mon Feb 18 21:49:03 2019 -0500
+++ b/mojoshader.c	Wed Mar 06 15:09:49 2019 -0500
@@ -2623,7 +2623,10 @@
             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";