Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
At least allow returning the values that were set.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 6, 2011
1 parent 424ffa0 commit d1f56c3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -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;
Expand Down

0 comments on commit d1f56c3

Please sign in to comment.