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:
parent
7b1889cfec
commit
4d2d2d8709
@ -86,8 +86,7 @@ static NSArray *drawOrderSort;
|
|||||||
// Get the game host.
|
// Get the game host.
|
||||||
gameHost = (GameHost*)[UIApplication sharedApplication];
|
gameHost = (GameHost*)[UIApplication sharedApplication];
|
||||||
|
|
||||||
// Initialize game window.
|
|
||||||
[self.window initialize];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
@ -117,7 +116,10 @@ static NSArray *drawOrderSort;
|
|||||||
|
|
||||||
// METHODS
|
// METHODS
|
||||||
|
|
||||||
- (void) run {
|
- (void) run {
|
||||||
|
// Initialize game window.
|
||||||
|
[self.window initialize];
|
||||||
|
|
||||||
// Create the graphics device so we can finish initialization.
|
// Create the graphics device so we can finish initialization.
|
||||||
graphicsDeviceManager = [services getServiceOfType:[Protocols graphicsDeviceManager]];
|
graphicsDeviceManager = [services getServiceOfType:[Protocols graphicsDeviceManager]];
|
||||||
graphicsDeviceService = [services getServiceOfType:[Protocols graphicsDeviceService]];
|
graphicsDeviceService = [services getServiceOfType:[Protocols graphicsDeviceService]];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user