fixed issue with crashes on devices that only support openGL 1.1
This commit is contained in:
@@ -31,7 +31,9 @@ bool checkFramebufferStatus();
|
||||
backingHeight = -1;
|
||||
|
||||
context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
|
||||
|
||||
if ( context == nil)
|
||||
context = [[EAGLContext alloc] initWithAPI: kEAGLRenderingAPIOpenGLES1];
|
||||
|
||||
if (!context || ![EAGLContext setCurrentContext:context])
|
||||
{
|
||||
[self release];
|
||||
|
||||
Reference in New Issue
Block a user