equal
deleted
inserted
replaced
73 } else { |
73 } else { |
74 context = [[EAGLContext alloc] initWithAPI: kEAGLRenderingAPIOpenGLES1]; |
74 context = [[EAGLContext alloc] initWithAPI: kEAGLRenderingAPIOpenGLES1]; |
75 } |
75 } |
76 if (!context || ![EAGLContext setCurrentContext:context]) { |
76 if (!context || ![EAGLContext setCurrentContext:context]) { |
77 [self release]; |
77 [self release]; |
|
78 SDL_SetError("OpenGL ES %d not supported", majorVersion); |
78 return nil; |
79 return nil; |
79 } |
80 } |
80 |
81 |
81 // !!! FIXME: use the screen this is on! |
82 // !!! FIXME: use the screen this is on! |
82 /* Use the main screen scale (for retina display support) */ |
83 /* Use the main screen scale (for retina display support) */ |