From 353d7dfbee3c4cbc235ec703c4726e81f6619a5f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 7 Jun 2012 04:31:01 -0400 Subject: [PATCH] Don't call GL entry points once we've blanked their pointers out. --- mojoshader_opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mojoshader_opengl.c b/mojoshader_opengl.c index 625ef937..bcc3196a 100644 --- a/mojoshader_opengl.c +++ b/mojoshader_opengl.c @@ -2526,9 +2526,9 @@ void MOJOSHADER_glDestroyContext(MOJOSHADER_glContext *_ctx) 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