src/render/opengles2/SDL_render_gles2.c
changeset 11630 ad4b5d85edee
parent 11574 696d0036f442
child 11702 cf166abbde4a
     1.1 --- a/src/render/opengles2/SDL_render_gles2.c	Mon Oct 16 15:22:40 2017 -0700
     1.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Wed Oct 18 08:52:04 2017 -0700
     1.3 @@ -2031,8 +2031,9 @@
     1.4      }
     1.5  
     1.6      window_flags = SDL_GetWindowFlags(window);
     1.7 +    /* OpenGL ES 3.0 is a superset of OpenGL ES 2.0 */
     1.8      if (!(window_flags & SDL_WINDOW_OPENGL) ||
     1.9 -        profile_mask != SDL_GL_CONTEXT_PROFILE_ES || major != RENDERER_CONTEXT_MAJOR || minor != RENDERER_CONTEXT_MINOR) {
    1.10 +        profile_mask != SDL_GL_CONTEXT_PROFILE_ES || major < RENDERER_CONTEXT_MAJOR) {
    1.11  
    1.12          changed_window = SDL_TRUE;
    1.13          SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);