iOS: Fixed crashes when rotating the screen after destroying a window.
This commit is contained in:
parent
7af65f8906
commit
963cac02b5
1 changed files with 3 additions and 0 deletions
|
@ -316,6 +316,9 @@ UIKit_DestroyWindow(_THIS, SDL_Window * window)
|
|||
for (SDL_uikitview *view in views) {
|
||||
[view setSDLWindow:NULL];
|
||||
}
|
||||
|
||||
data.uiwindow.rootViewController = nil;
|
||||
data.uiwindow.hidden = YES;
|
||||
}
|
||||
}
|
||||
window->driverdata = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue