Fix native crash when closing the OS X Display window using the

close button
This commit is contained in:
kappaOne 2012-11-22 22:43:43 +00:00
parent 5f37b11857
commit 9931e5dbfc
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ package org.lwjgl.opengl;
/**
* This is the Display implementation interface. Display delegates
* to implementors of this interface. There is one DisplayImplementation
* for each supported platform. Git test
* for each supported platform.
* @author elias_naur
*/

View file

@ -139,7 +139,7 @@ static NSAutoreleasePool *pool;
NSOpenGLContext* context = [self openGLContext];
[super lockFocus];
if ([context view] != self) {
if ([context view] != self && [context view] != nil) {
[context setView:self];
}