fix crash on startup when creating a second window Display after a
destroy in the same app
This commit is contained in:
parent
e725ca7d34
commit
ed9ab95419
|
@ -216,6 +216,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXContextImplementation_nDestro
|
||||||
if (context_info->peer_info->isWindowed) {
|
if (context_info->peer_info->isWindowed) {
|
||||||
[context_info->context release];
|
[context_info->context release];
|
||||||
context_info->context = nil;
|
context_info->context = nil;
|
||||||
|
context_info->peer_info->window_info->context = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
[pool release];
|
[pool release];
|
||||||
|
|
Loading…
Reference in New Issue