No index string on gl_Color/gl_SecondaryColor ... trunk
authorRyan C. Gordon <icculus@icculus.org>
Sat, 10 May 2008 21:50:21 -0400
branchtrunk
changeset 311 f4586d297d3b
parent 310 d323e04e62f7
child 312 a5c140ca79d4
No index string on gl_Color/gl_SecondaryColor ...
mojoshader.c
--- a/mojoshader.c	Sat May 10 16:13:29 2008 -0400
+++ b/mojoshader.c	Sat May 10 21:50:21 2008 -0400
@@ -2330,6 +2330,7 @@
 
             else if (usage == MOJOSHADER_USAGE_COLOR)
             {
+                index_str[0] = '\0';  // no explicit number.
                 if (index == 0)
                     usage_str = "gl_Color";
                 else if (index == 1)