Fix crash on close of the Display when using Java 7 on OS X
This commit is contained in:
parent
7b955ee86b
commit
14de6c518d
|
@ -225,6 +225,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXContextImplementation_nDestro
|
||||||
[context_info->context performSelectorOnMainThread:@selector(clearDrawable) withObject:nil waitUntilDone:YES];
|
[context_info->context performSelectorOnMainThread:@selector(clearDrawable) withObject:nil waitUntilDone:YES];
|
||||||
|
|
||||||
if (context_info->peer_info->isWindowed) {
|
if (context_info->peer_info->isWindowed) {
|
||||||
|
[context_info->peer_info->window_info->view setOpenGLContext:nil];
|
||||||
[context_info->context release];
|
[context_info->context release];
|
||||||
context_info->context = nil;
|
context_info->context = nil;
|
||||||
context_info->peer_info->window_info->context = nil;
|
context_info->peer_info->window_info->context = nil;
|
||||||
|
|
Loading…
Reference in New Issue