Drop the default requested OpenGL version to 1.2.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 10 Mar 2014 00:01:14 -0400
changeset 85860dc3f8da610a
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
     1.1 --- a/src/video/SDL_video.c	Sun Mar 09 12:27:31 2014 -0700
     1.2 +++ b/src/video/SDL_video.c	Mon Mar 10 00:01:14 2014 -0400
     1.3 @@ -2563,10 +2563,10 @@
     1.4      _this->gl_config.multisamplesamples = 0;
     1.5      _this->gl_config.retained_backing = 1;
     1.6      _this->gl_config.accelerated = -1;  /* accelerated or not, both are fine */
     1.7 +#if SDL_VIDEO_OPENGL
     1.8 +    _this->gl_config.major_version = 1;
     1.9 +    _this->gl_config.minor_version = 2;
    1.10      _this->gl_config.profile_mask = 0;
    1.11 -#if SDL_VIDEO_OPENGL
    1.12 -    _this->gl_config.major_version = 2;
    1.13 -    _this->gl_config.minor_version = 1;
    1.14  #elif SDL_VIDEO_OPENGL_ES2
    1.15      _this->gl_config.major_version = 2;
    1.16      _this->gl_config.minor_version = 0;