mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-03-03 05:54:19 +01:00
iOS: Fixed crashes when rotating the screen after destroying a window.
This commit is contained in:
parent
faee628941
commit
7267835842
@ -316,6 +316,9 @@ UIKit_DestroyWindow(_THIS, SDL_Window * window)
|
|||||||
for (SDL_uikitview *view in views) {
|
for (SDL_uikitview *view in views) {
|
||||||
[view setSDLWindow:NULL];
|
[view setSDLWindow:NULL];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
data.uiwindow.rootViewController = nil;
|
||||||
|
data.uiwindow.hidden = YES;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window->driverdata = NULL;
|
window->driverdata = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user