Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Copy mainfn when duplicating parsedata
  • Loading branch information
TheSpydog committed Nov 24, 2019
1 parent ded4a9e commit e838e55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mojoshader_effects.c
Expand Up @@ -1343,6 +1343,9 @@ MOJOSHADER_parseData *copyparsedata(const MOJOSHADER_parseData *src,
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;
Expand Down

0 comments on commit e838e55

Please sign in to comment.