mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-02-08 08:44:25 +01:00
Fix native crash when closing the OS X Display window using the
close button
This commit is contained in:
parent
5f37b11857
commit
9931e5dbfc
|
|
@ -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
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue