changeset 1938:861893943d53

Actually use the function we took the trouble to get the pointer for.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 25 Jul 2006 07:14:40 +0000
parents 05e88d266921
children 37a7580357d1
files src/video/SDL_video.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_video.c	Tue Jul 25 06:59:14 2006 +0000
+++ b/src/video/SDL_video.c	Tue Jul 25 07:14:40 2006 +0000
@@ -2261,13 +2261,13 @@
             GLint component;
 
             /* there doesn't seem to be a single flag in OpenGL for this! */
-            glGetIntegerv(GL_RED_BITS, &component);
+            glGetIntegervFunc(GL_RED_BITS, &component);
             bits += component;
-            glGetIntegerv(GL_GREEN_BITS, &component);
+            glGetIntegervFunc(GL_GREEN_BITS, &component);
             bits += component;
-            glGetIntegerv(GL_BLUE_BITS, &component);
+            glGetIntegervFunc(GL_BLUE_BITS, &component);
             bits += component;
-            glGetIntegerv(GL_ALPHA_BITS, &component);
+            glGetIntegervFunc(GL_ALPHA_BITS, &component);
             bits += component;
 
             *value = bits;
@@ -2284,7 +2284,7 @@
         return -1;
     }
 
-    glGetIntegerv(attrib, (GLint *) value);
+    glGetIntegervFunc(attrib, (GLint *) value);
     return 0;
 #else
     SDL_Unsupported();