iOS: Fixed crashes when rotating the screen after destroying a window.
authorAlex Szpakowski
Thu, 12 Nov 2015 20:58:11 -0400
changeset 99117423403b70da
parent 9910 3ef321f52ca5
child 9912 628225876708
iOS: Fixed crashes when rotating the screen after destroying a window.
src/video/uikit/SDL_uikitwindow.m
     1.1 --- a/src/video/uikit/SDL_uikitwindow.m	Thu Nov 12 13:13:36 2015 -0800
     1.2 +++ b/src/video/uikit/SDL_uikitwindow.m	Thu Nov 12 20:58:11 2015 -0400
     1.3 @@ -316,6 +316,9 @@
     1.4              for (SDL_uikitview *view in views) {
     1.5                  [view setSDLWindow:NULL];
     1.6              }
     1.7 +
     1.8 +            data.uiwindow.rootViewController = nil;
     1.9 +            data.uiwindow.hidden = YES;
    1.10          }
    1.11      }
    1.12      window->driverdata = NULL;