1
0
mirror of https://github.com/thes3m/XNI synced 2024-12-26 13:26:06 +01:00

Moved initialization of GameVindow back to run method, because it caused problems with different device orientations.

git-svn-id: http://xni.googlecode.com/svn/XNI@117 ac433895-eea3-a490-d80a-17149a75e588
This commit is contained in:
Samo Pajk 2012-09-28 10:16:28 +00:00
parent 7b1889cfec
commit 4d2d2d8709

View File

@ -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]];