mojoshader_opengl.c
changeset 1156 6e760a19f456
parent 1152 8f7653f0dc37
child 1173 4b2f745c643b
--- a/mojoshader_opengl.c	Mon Apr 25 02:54:04 2016 -0400
+++ b/mojoshader_opengl.c	Mon Apr 25 02:55:29 2016 -0400
@@ -1537,8 +1537,11 @@
 {
     MOJOSHADER_glShader *retval = NULL;
     GLuint shader = 0;
-    const MOJOSHADER_parseData *pd = MOJOSHADER_parse(ctx->profile, tokenbuf,
-                                                      bufsize, swiz, swizcount,
+
+    // This doesn't need a mainfn, since there's no GL lang that does.
+    const MOJOSHADER_parseData *pd = MOJOSHADER_parse(ctx->profile, NULL,
+                                                      tokenbuf, bufsize,
+                                                      swiz, swizcount,
                                                       smap, smapcount,
                                                       ctx->malloc_fn,
                                                       ctx->free_fn,