diff --git a/Classes/Retronator/Xni/Framework/Game.m b/Classes/Retronator/Xni/Framework/Game.m index b2b4564..2de124d 100644 --- a/Classes/Retronator/Xni/Framework/Game.m +++ b/Classes/Retronator/Xni/Framework/Game.m @@ -86,8 +86,7 @@ static NSArray *drawOrderSort; // Get the game host. gameHost = (GameHost*)[UIApplication sharedApplication]; - // Initialize game window. - [self.window initialize]; + } return self; @@ -117,7 +116,10 @@ static NSArray *drawOrderSort; // METHODS -- (void) run { +- (void) run { + // Initialize game window. + [self.window initialize]; + // Create the graphics device so we can finish initialization. graphicsDeviceManager = [services getServiceOfType:[Protocols graphicsDeviceManager]]; graphicsDeviceService = [services getServiceOfType:[Protocols graphicsDeviceService]];