Mercurial > sdl-ios-xcode
comparison src/video/SDL_video.c @ 5213:1be088cec098
At least allow returning the values that were set.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 06 Feb 2011 10:24:08 -0800 |
parents | 115fff0641ee |
children | fb058f09061d |
comparison
equal
deleted
inserted
replaced
5212:115fff0641ee | 5213:1be088cec098 |
---|---|
2161 { | 2161 { |
2162 /* FIXME: How do we get this information? */ | 2162 /* FIXME: How do we get this information? */ |
2163 *value = (_this->gl_config.accelerated != 0); | 2163 *value = (_this->gl_config.accelerated != 0); |
2164 return 0; | 2164 return 0; |
2165 } | 2165 } |
2166 case SDL_GL_RETAINED_BACKING: | |
2167 { | |
2168 *value = _this->gl_config.retained_backing; | |
2169 return 0; | |
2170 } | |
2171 case SDL_GL_CONTEXT_MAJOR_VERSION: | |
2172 { | |
2173 *value = _this->gl_config.major_version; | |
2174 return 0; | |
2175 } | |
2176 case SDL_GL_CONTEXT_MINOR_VERSION: | |
2177 { | |
2178 *value = _this->gl_config.minor_version; | |
2179 return 0; | |
2180 } | |
2166 default: | 2181 default: |
2167 SDL_SetError("Unknown OpenGL attribute"); | 2182 SDL_SetError("Unknown OpenGL attribute"); |
2168 return -1; | 2183 return -1; |
2169 } | 2184 } |
2170 | 2185 |