mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-15 17:54:39 +01:00
fix potential crash on exit when closing the Display window
This commit is contained in:
parent
f381eb1f35
commit
6cd860525f
|
|
@ -214,6 +214,10 @@ 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) {
|
||||
if (context_info->peer_info->window_info->view != nil) {
|
||||
[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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue