--- 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,