# HG changeset patch # User Sam Lantinga # Date 1297016648 28800 # Node ID 1be088cec09833374334086060c7e697c1ac33f5 # Parent 115fff0641ee48cb678b824d39b1b5ff4482a29c At least allow returning the values that were set. diff -r 115fff0641ee -r 1be088cec098 src/video/SDL_video.c --- a/src/video/SDL_video.c Sun Feb 06 10:22:25 2011 -0800 +++ b/src/video/SDL_video.c Sun Feb 06 10:24:08 2011 -0800 @@ -2163,6 +2163,21 @@ *value = (_this->gl_config.accelerated != 0); return 0; } + case SDL_GL_RETAINED_BACKING: + { + *value = _this->gl_config.retained_backing; + return 0; + } + case SDL_GL_CONTEXT_MAJOR_VERSION: + { + *value = _this->gl_config.major_version; + return 0; + } + case SDL_GL_CONTEXT_MINOR_VERSION: + { + *value = _this->gl_config.minor_version; + return 0; + } default: SDL_SetError("Unknown OpenGL attribute"); return -1;