src/video/uikit/SDL_uikitopenglview.m
changeset 6179 a83eb92704f3
parent 6164 67f122d8284f
child 6267 ed2cf4669e55
equal deleted inserted replaced
6178:1fc633857667 6179:a83eb92704f3
    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) */