mojoshader.c
changeset 1157 d7282ef4110f
parent 1156 6e760a19f456
child 1158 94bbbdd9a344
--- a/mojoshader.c	Mon Apr 25 02:55:29 2016 -0400
+++ b/mojoshader.c	Tue May 17 16:01:06 2016 -0400
@@ -4080,8 +4080,7 @@
                                                 const int base, const int size,
                                                 char *buf, const size_t buflen)
 {
-    const char *type = ctx->shader_type_str;
-    snprintf(buf, buflen, "%s_const_array_%d_%d", type, base, size);
+    snprintf(buf, buflen, "%s_const_array_%d_%d", ctx->mainfn, base, size);
     return buf;
 } // get_METAL_const_array_varname_in_buf