diff src/video/uikit/SDL_uikitopengles.m @ 5212:115fff0641ee

Prefer the OpenGL ES 2.0 context when it's available, make it possible to create an OpenGL 2.0 context on iPhoneOS
author Sam Lantinga <slouken@libsdl.org>
date Sun, 06 Feb 2011 10:22:25 -0800
parents 5f09cb749d75
children 58265e606e4e
line wrap: on
line diff
--- a/src/video/uikit/SDL_uikitopengles.m	Sun Feb 06 09:02:10 2011 -0800
+++ b/src/video/uikit/SDL_uikitopengles.m	Sun Feb 06 10:22:25 2011 -0800
@@ -113,7 +113,8 @@
                                     gBits: _this->gl_config.green_size \
                                     bBits: _this->gl_config.blue_size \
                                     aBits: _this->gl_config.alpha_size \
-                                    depthBits: _this->gl_config.depth_size];
+                                    depthBits: _this->gl_config.depth_size \
+                                    majorVersion: _this->gl_config.major_version];
     
     data->view = view;