Commit 89648a9a3c86c08aa145fbf53bebad4c4ea24d51

Ryan C. Gordon 2014-03-10T00:01:14

Drop the default requested OpenGL version to 1.2. Fixes default context creation on Mac OS X <= 10.6.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 722fdf4..4aa6243 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -2563,10 +2563,10 @@ SDL_GL_ResetAttributes()
     _this->gl_config.multisamplesamples = 0;
     _this->gl_config.retained_backing = 1;
     _this->gl_config.accelerated = -1;  /* accelerated or not, both are fine */
-    _this->gl_config.profile_mask = 0;
 #if SDL_VIDEO_OPENGL
-    _this->gl_config.major_version = 2;
-    _this->gl_config.minor_version = 1;
+    _this->gl_config.major_version = 1;
+    _this->gl_config.minor_version = 2;
+    _this->gl_config.profile_mask = 0;
 #elif SDL_VIDEO_OPENGL_ES2
     _this->gl_config.major_version = 2;
     _this->gl_config.minor_version = 0;