equal
deleted
inserted
replaced
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 |