mojoshader_compiler.c
changeset 937 94e50ba3f956
parent 936 b4a15ef390c4
child 939 64cc93ee5a56
--- a/mojoshader_compiler.c	Tue Nov 02 14:55:10 2010 -0400
+++ b/mojoshader_compiler.c	Tue Nov 02 14:55:33 2010 -0400
@@ -328,7 +328,7 @@
 static void destroy_symbolmap(Context *ctx, SymbolMap *map)
 {
     while (map->scope)
-        pop_symbol_scope(ctx, map);
+        pop_symbol(ctx, map);
     hash_destroy(map->hash);
 } // destroy_symbolmap
 
@@ -2265,13 +2265,13 @@
         {
             // "float2"
             int len = snprintf(buf, sizeof (buf), "%s%d", types[i], j);
-            push_usertype(ctx, stringcache_len(ctx->strcache, buf, len), NULL);
+            push_usertype(ctx, stringcache_len(ctx->strcache, buf, len), "?");
             int k;
             for (k = 1; k <= 4; k++)
             {
                 // "float2x2"
                 len = snprintf(buf, sizeof (buf), "%s%dx%d", types[i], j, k);
-                push_usertype(ctx, stringcache_len(ctx->strcache, buf, len), NULL);
+                push_usertype(ctx, stringcache_len(ctx->strcache, buf, len), "?");
             } // for
         } // for
     } // for