testparse.c
branchtrunk
changeset 94 57adfb4769a0
parent 92 bc1bb138e855
child 97 4a41e3d17297
--- a/testparse.c	Fri Apr 04 09:48:55 2008 -0400
+++ b/testparse.c	Fri Apr 04 11:27:09 2008 -0400
@@ -60,15 +60,13 @@
             printf(" (none.)\n");
         else
         {
-            static const char *typenames[] = { "float", "int", "bool" };
             int i;
             printf("\n");
             for (i = 0; i < pd->uniform_count; i++)
             {
+                static const char *typenames[] = { "float", "int", "bool" };
                 const MOJOSHADER_uniform *u = &pd->uniforms[i];
-                const char *name = u->name ? u->name : "";
-                const char *typestr = typenames[(int) u->type];
-                printf("    * %d: %s %s\n", u->index, typestr, name);
+                printf("    * %d: %s\n", u->index, typenames[(int) u->type]);
             } // for
         } // else