Skip to content

Commit

Permalink
iOS: Fixed crashes when rotating the screen after destroying a window.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Nov 13, 2015
1 parent faee628 commit 7267835
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/uikit/SDL_uikitwindow.m
Expand Up @@ -316,6 +316,9 @@ static int SetupWindowData(_THIS, SDL_Window *window, UIWindow *uiwindow, SDL_bo
for (SDL_uikitview *view in views) {
[view setSDLWindow:NULL];
}

data.uiwindow.rootViewController = nil;
data.uiwindow.hidden = YES;
}
}
window->driverdata = NULL;
Expand Down

0 comments on commit 7267835

Please sign in to comment.