Skip to content

Commit

Permalink
Don't call GL entry points once we've blanked their pointers out.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 7, 2012
1 parent a36ec74 commit 353d7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_opengl.c
Expand Up @@ -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
Expand Down

0 comments on commit 353d7df

Please sign in to comment.