From eac41801dac087d15ddfe60921262df768fc1686 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 6 Feb 2011 10:24:08 -0800 Subject: [PATCH] At least allow returning the values that were set. --- src/video/SDL_video.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 147c82a30..7b146d089 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -2163,6 +2163,21 @@ SDL_GL_GetAttribute(SDL_GLattr attr, int *value) *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;