Default to OpenGL ES 2.0 instead of 1.0 when it's available.
authorSam Lantinga <slouken@libsdl.org>
Fri, 27 Sep 2013 22:09:51 -0700
changeset 7745c52d519d104a
parent 7744 6a145dedc972
child 7746 6a05d7352575
Default to OpenGL ES 2.0 instead of 1.0 when it's available.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Sat Sep 14 11:25:52 2013 -0700
     1.2 +++ b/src/video/SDL_video.c	Fri Sep 27 22:09:51 2013 -0700
     1.3 @@ -481,14 +481,14 @@
     1.4  #if SDL_VIDEO_OPENGL
     1.5      _this->gl_config.major_version = 2;
     1.6      _this->gl_config.minor_version = 1;
     1.7 +#elif SDL_VIDEO_OPENGL_ES2
     1.8 +    _this->gl_config.major_version = 2;
     1.9 +    _this->gl_config.minor_version = 0;
    1.10 +    _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;   
    1.11  #elif SDL_VIDEO_OPENGL_ES
    1.12      _this->gl_config.major_version = 1;
    1.13      _this->gl_config.minor_version = 1;
    1.14      _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
    1.15 -#elif SDL_VIDEO_OPENGL_ES2
    1.16 -    _this->gl_config.major_version = 2;
    1.17 -    _this->gl_config.minor_version = 0;
    1.18 -    _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;   
    1.19  #endif
    1.20      _this->gl_config.flags = 0;
    1.21