fix crash on startup when creating a second window Display after a

destroy in the same app
This commit is contained in:
kappaOne 2013-02-12 21:53:49 +00:00
parent e725ca7d34
commit ed9ab95419
1 changed files with 1 additions and 0 deletions

View File

@ -216,6 +216,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXContextImplementation_nDestro
if (context_info->peer_info->isWindowed) {
[context_info->context release];
context_info->context = nil;
context_info->peer_info->window_info->context = nil;
}
[pool release];