src/video/SDL_video.c
changeset 3100 7dc982143c06
parent 3099 82e60908fab1
child 3130 fef1a835af43
child 3139 7f684f249ec9
     1.1 --- a/src/video/SDL_video.c	Tue Mar 24 10:33:12 2009 +0000
     1.2 +++ b/src/video/SDL_video.c	Tue Mar 24 10:43:53 2009 +0000
     1.3 @@ -257,6 +257,8 @@
     1.4      _this->gl_config.multisamplesamples = 0;
     1.5      _this->gl_config.retained_backing = 1;
     1.6      _this->gl_config.accelerated = -1;  /* not known, don't set */
     1.7 +    _this->gl_config.major_version = 2;
     1.8 +    _this->gl_config.minor_version = 1;
     1.9  
    1.10      /* Initialize the video subsystem */
    1.11      if (_this->VideoInit(_this) < 0) {
    1.12 @@ -2694,6 +2696,12 @@
    1.13      case SDL_GL_RETAINED_BACKING:
    1.14          _this->gl_config.retained_backing = value;
    1.15          break;
    1.16 +    case SDL_GL_CONTEXT_MAJOR_VERSION:
    1.17 +        _this->gl_config.major_version = value;
    1.18 +        break;
    1.19 +    case SDL_GL_CONTEXT_MINOR_VERSION:
    1.20 +        _this->gl_config.minor_version = value;
    1.21 +        break;
    1.22      default:
    1.23          SDL_SetError("Unknown OpenGL attribute");
    1.24          retval = -1;