fixed issue with crashes on devices that only support openGL 1.1

This commit is contained in:
techdragon.nguyen@gmail.com
2011-12-13 22:28:16 +00:00
parent 8b7ae968a5
commit 8550b70e2e
5 changed files with 697 additions and 23 deletions
+7 -2
View File
@@ -41,8 +41,13 @@
- (void) startGame
{
if (glViewController != nil)
[glViewController release];
glViewController = [[EAGLViewController alloc] init];
[self.wagicDownloadController release];
if (wagicDownloadController != nil)
[wagicDownloadController release];
[self.window addSubview:self.glViewController.view];
NSNotificationCenter *dnc = [NSNotificationCenter defaultCenter];
@@ -183,7 +188,7 @@
- (BOOL) isNetworkAvailable
{
BOOL netAvailable = NO;
NSDate *startTime = [[[NSDate alloc ] init] autorelease];
//NSDate *startTime = [[[NSDate alloc ] init] autorelease];
hostReach = [[Reachability reachabilityForGoogleDNS] retain];