Copy mainfn when duplicating parsedata
authorCaleb Cornett <caleb.cornett@outlook.com>
Sat, 23 Nov 2019 21:54:01 -0500
changeset 1218 063ee7ba5eea
parent 1217 065dcf3eed9c
child 1219 c239540656e7
Copy mainfn when duplicating parsedata
mojoshader_effects.c
--- a/mojoshader_effects.c	Wed Nov 20 13:36:32 2019 -0500
+++ b/mojoshader_effects.c	Sat Nov 23 21:54:01 2019 -0500
@@ -1343,6 +1343,9 @@
     retval->major_ver = src->major_ver;
     retval->minor_ver = src->minor_ver;
 
+    /* Copy main function string */
+    COPY_STRING(mainfn);
+
     /* Copy uniforms */
     siz = sizeof (MOJOSHADER_uniform) * src->uniform_count;
     retval->uniform_count = src->uniform_count;