mojoshader_opengl.c
changeset 1110 91a6af79b5e4
parent 1105 57e255c3b243
child 1111 7530b37979b8
--- 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