Skip to content

Commit

Permalink
Drop the default requested OpenGL version to 1.2.
Browse files Browse the repository at this point in the history
Fixes default context creation on Mac OS X <= 10.6.
  • Loading branch information
icculus committed Mar 10, 2014
1 parent 1fe7b27 commit 89648a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/video/SDL_video.c
Expand Up @@ -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;
Expand Down

0 comments on commit 89648a9

Please sign in to comment.