mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-01-07 09:19:56 +01:00
Wait for NSView to be correctly removed before closing window
This commit is contained in:
parent
b6a89d3bd4
commit
b72cdb3064
|
|
@ -487,7 +487,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXDisplay_nDestroyWindow(JNIEnv
|
|||
MacOSXWindowInfo *window_info = (MacOSXWindowInfo *)(*env)->GetDirectBufferAddress(env, window_handle);
|
||||
|
||||
if (window_info->view != nil) {
|
||||
[window_info->view removeFromSuperviewWithoutNeedingDisplay];
|
||||
[window_info->view performSelectorOnMainThread:@selector(removeFromSuperviewWithoutNeedingDisplay) withObject:nil waitUntilDone:YES];
|
||||
}
|
||||
|
||||
if (window_info->fullscreen) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue