Fix crash when dragging mouse and switching from fullscreen to windowed

mode
This commit is contained in:
kappaOne 2013-01-16 22:37:50 +00:00
parent fbb490bb3a
commit 4735a6040f
1 changed files with 1 additions and 0 deletions

View File

@ -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 {