Default to OpenGL ES 2.0 instead of 1.0 when it's available.
authorSam Lantinga <slouken@libsdl.org>
Fri, 27 Sep 2013 22:09:51 -0700
changeset 7745 c52d519d104a
parent 7744 6a145dedc972
child 7746 6a05d7352575
Default to OpenGL ES 2.0 instead of 1.0 when it's available.
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Sat Sep 14 11:25:52 2013 -0700
+++ b/src/video/SDL_video.c	Fri Sep 27 22:09:51 2013 -0700
@@ -481,14 +481,14 @@
 #if SDL_VIDEO_OPENGL
     _this->gl_config.major_version = 2;
     _this->gl_config.minor_version = 1;
+#elif SDL_VIDEO_OPENGL_ES2
+    _this->gl_config.major_version = 2;
+    _this->gl_config.minor_version = 0;
+    _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;   
 #elif SDL_VIDEO_OPENGL_ES
     _this->gl_config.major_version = 1;
     _this->gl_config.minor_version = 1;
     _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
-#elif SDL_VIDEO_OPENGL_ES2
-    _this->gl_config.major_version = 2;
-    _this->gl_config.minor_version = 0;
-    _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;   
 #endif
     _this->gl_config.flags = 0;