Commit 44d8b045 authored by Sam Lantinga's avatar Sam Lantinga

At least allow returning the values that were set.

parent b1c0c48f
...@@ -2163,6 +2163,21 @@ SDL_GL_GetAttribute(SDL_GLattr attr, int *value) ...@@ -2163,6 +2163,21 @@ SDL_GL_GetAttribute(SDL_GLattr attr, int *value)
*value = (_this->gl_config.accelerated != 0); *value = (_this->gl_config.accelerated != 0);
return 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: default:
SDL_SetError("Unknown OpenGL attribute"); SDL_SetError("Unknown OpenGL attribute");
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment