Don't call GL entry points once we've blanked their pointers out.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 07 Jun 2012 04:31:01 -0400
changeset 1110 91a6af79b5e4
parent 1109 51292bd4476b
child 1111 7530b37979b8
Don't call GL entry points once we've blanked their pointers out.
mojoshader_opengl.c
--- a/mojoshader_opengl.c	Tue May 29 06:17:49 2012 -0400
+++ b/mojoshader_opengl.c	Thu Jun 07 04:31:01 2012 -0400
@@ -2526,9 +2526,9 @@
     MOJOSHADER_glContext *current_ctx = ctx;
     ctx = _ctx;
     MOJOSHADER_glBindProgram(NULL);
-    lookup_entry_points(NULL, NULL);   // !!! FIXME: is there a value to this?
     if (ctx->linker_cache)
         hash_destroy(ctx->linker_cache);
+    lookup_entry_points(NULL, NULL);   // !!! FIXME: is there a value to this?
     Free(ctx);
     ctx = ((current_ctx == _ctx) ? NULL : current_ctx);
 } // MOJOSHADER_glDestroyContext