Fix crash when dragging mouse and switching from fullscreen to windowed
mode
This commit is contained in:
parent
fbb490bb3a
commit
4735a6040f
|
@ -516,6 +516,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXDisplay_nDestroyWindow(JNIEnv
|
|||
MacOSXWindowInfo *window_info = (MacOSXWindowInfo *)(*env)->GetDirectBufferAddress(env, window_handle);
|
||||
|
||||
if (window_info->fullscreen) {
|
||||
[window_info->view setParent:nil];
|
||||
[window_info->view exitFullScreenModeWithOptions: nil];
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue