changeset 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
files src/video/SDL_video.c
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_video.c	Sun Feb 06 10:22:25 2011 -0800
+++ b/src/video/SDL_video.c	Sun Feb 06 10:24:08 2011 -0800
@@ -2163,6 +2163,21 @@
             *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;