src/video/SDL_video.c
changeset 6370 93187f7f7d5d
parent 6296 b42657486c0d
child 6382 64d54101773a
     1.1 --- a/src/video/SDL_video.c	Wed Jul 18 15:02:48 2012 -0700
     1.2 +++ b/src/video/SDL_video.c	Wed Jul 18 15:17:27 2012 -0700
     1.3 @@ -493,12 +493,15 @@
     1.4  #if SDL_VIDEO_OPENGL
     1.5      _this->gl_config.major_version = 2;
     1.6      _this->gl_config.minor_version = 1;
     1.7 +    _this->gl_config.use_egl = 0;
     1.8  #elif SDL_VIDEO_OPENGL_ES
     1.9      _this->gl_config.major_version = 1;
    1.10      _this->gl_config.minor_version = 1;
    1.11 +    _this->gl_config.use_egl = 1;
    1.12  #elif SDL_VIDEO_OPENGL_ES2
    1.13      _this->gl_config.major_version = 2;
    1.14      _this->gl_config.minor_version = 0;
    1.15 +    _this->gl_config.use_egl = 1;
    1.16  #endif
    1.17      _this->gl_config.flags = 0;
    1.18      _this->gl_config.profile_mask = 0;
    1.19 @@ -2302,6 +2305,9 @@
    1.20      case SDL_GL_CONTEXT_MINOR_VERSION:
    1.21          _this->gl_config.minor_version = value;
    1.22          break;
    1.23 +    case SDL_GL_CONTEXT_EGL:
    1.24 +        _this->gl_config.use_egl = value;
    1.25 +        break;
    1.26      case SDL_GL_CONTEXT_FLAGS:
    1.27          _this->gl_config.flags = value;
    1.28          break;
    1.29 @@ -2454,6 +2460,11 @@
    1.30              *value = _this->gl_config.minor_version;
    1.31              return 0;
    1.32          }
    1.33 +    case SDL_GL_CONTEXT_EGL:
    1.34 +        {
    1.35 +            *value = _this->gl_config.use_egl;
    1.36 +            return 0;
    1.37 +        }
    1.38      case SDL_GL_CONTEXT_FLAGS:
    1.39          {
    1.40              *value = _this->gl_config.flags;