From ed9ab9541910342376db1406357459f4b12b79d2 Mon Sep 17 00:00:00 2001 From: kappaOne Date: Tue, 12 Feb 2013 21:53:49 +0000 Subject: [PATCH] fix crash on startup when creating a second window Display after a destroy in the same app --- src/native/macosx/org_lwjgl_opengl_MacOSXContextImplementation.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/native/macosx/org_lwjgl_opengl_MacOSXContextImplementation.m b/src/native/macosx/org_lwjgl_opengl_MacOSXContextImplementation.m index dcdde4eb..0145f665 100644 --- a/src/native/macosx/org_lwjgl_opengl_MacOSXContextImplementation.m +++ b/src/native/macosx/org_lwjgl_opengl_MacOSXContextImplementation.m @@ -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];