testparse.c
branchtrunk
changeset 438 73492129c1af
parent 280 61b2abd9c927
child 450 6a9faf398c1d
--- a/testparse.c	Thu Jul 31 17:43:38 2008 -0400
+++ b/testparse.c	Thu Jul 31 17:48:36 2008 -0400
@@ -141,6 +141,7 @@
                 static const char *typenames[] = { "float", "int", "bool" };
                 const MOJOSHADER_uniform *u = &pd->uniforms[i];
                 const char *arrayof = "";
+                const char *constant = u->constant ? "const " : "";
                 char arrayrange[64] = { '\0' };
                 if (u->array_count > 0)
                 {
@@ -149,8 +150,8 @@
                              u->array_count);
                 } // if
 
-                printf("    * %d: %s%s%s", u->index, arrayof, arrayrange,
-                        typenames[(int) u->type]);
+                printf("    * %d: %s%s%s%s", u->index, constant, arrayof,
+                        arrayrange, typenames[(int) u->type]);
                 if (u->name != NULL)
                     printf(" (\"%s\")", u->name);
                 printf("\n");