Fix crash on close of the Display when using Java 7 on OS X

This commit is contained in:
kappaOne 2013-03-24 17:39:39 +00:00
parent 7b955ee86b
commit 14de6c518d
1 changed files with 1 additions and 0 deletions

View File

@ -225,6 +225,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXContextImplementation_nDestro
[context_info->context performSelectorOnMainThread:@selector(clearDrawable) withObject:nil waitUntilDone:YES];
if (context_info->peer_info->isWindowed) {
[context_info->peer_info->window_info->view setOpenGLContext:nil];
[context_info->context release];
context_info->context = nil;
context_info->peer_info->window_info->context = nil;