Drop the default requested OpenGL version to 1.2.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 10 Mar 2014 00:01:14 -0400
changeset 8586 0dc3f8da610a
parent 8585 2d08b56cbfa9
child 8587 d913fb15b69a
Drop the default requested OpenGL version to 1.2. Fixes default context creation on Mac OS X <= 10.6.
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Sun Mar 09 12:27:31 2014 -0700
+++ b/src/video/SDL_video.c	Mon Mar 10 00:01:14 2014 -0400
@@ -2563,10 +2563,10 @@
     _this->gl_config.multisamplesamples = 0;
     _this->gl_config.retained_backing = 1;
     _this->gl_config.accelerated = -1;  /* accelerated or not, both are fine */
+#if SDL_VIDEO_OPENGL
+    _this->gl_config.major_version = 1;
+    _this->gl_config.minor_version = 2;
     _this->gl_config.profile_mask = 0;
-#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;