From aff242c8b6b0b61f99199431e0d1fca00b980e86 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 10 Mar 2014 00:01:14 -0400 Subject: [PATCH] Drop the default requested OpenGL version to 1.2. Fixes default context creation on Mac OS X <= 10.6. --HG-- extra : rebase_source : e8cb3a139e6af51f94929203d1046665e0d2c438 extra : histedit_source : fa77978715a878180315ea637d08d788cee94e93%2C12a503d312aeafe7669f059b1644cb04ce994b82 --- src/video/SDL_video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 722fdf4f8..4aa6243da 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;