changeset 5222:9c0593fa27d6

Create an OpenGL 1.1 context by default, if available. This is easier for people to set up and work with, and is more conformant to the way desktop OpenGL works.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 07 Feb 2011 09:23:01 -0800
parents 16d5e8e90e01
children 572a73d71b5f
files src/video/SDL_video.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_video.c	Mon Feb 07 00:46:43 2011 -0800
+++ b/src/video/SDL_video.c	Mon Feb 07 09:23:01 2011 -0800
@@ -488,12 +488,12 @@
 #if SDL_VIDEO_OPENGL
     _this->gl_config.major_version = 2;
     _this->gl_config.minor_version = 1;
+#elif SDL_VIDEO_OPENGL_ES
+    _this->gl_config.major_version = 1;
+    _this->gl_config.minor_version = 1;
 #elif SDL_VIDEO_OPENGL_ES2
     _this->gl_config.major_version = 2;
     _this->gl_config.minor_version = 0;
-#elif SDL_VIDEO_OPENGL_ES
-    _this->gl_config.major_version = 1;
-    _this->gl_config.minor_version = 1;
 #endif
 
     /* Initialize the video subsystem */