mojoshader_opengl.c
changeset 1105 57e255c3b243
parent 1104 9147482e1ec7
child 1110 91a6af79b5e4
--- a/mojoshader_opengl.c	Tue May 29 02:43:24 2012 -0400
+++ b/mojoshader_opengl.c	Tue May 29 03:20:28 2012 -0400
@@ -1667,6 +1667,9 @@
 static void lookup_outputs(MOJOSHADER_glProgram *program,
                            MOJOSHADER_glShader *shader)
 {
+    if (shader == NULL)
+        return;
+
     const MOJOSHADER_parseData *pd = shader->parseData;
     int i;