From b62e92212a2a0af9da4d567e0a294ab20a55f0a9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 25 Jul 2006 07:14:40 +0000 Subject: [PATCH] Actually use the function we took the trouble to get the pointer for. --- src/video/SDL_video.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 5cf7256c3..07a377a25 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -2261,13 +2261,13 @@ SDL_GL_GetAttribute(SDL_GLattr attr, int *value) 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 @@ SDL_GL_GetAttribute(SDL_GLattr attr, int *value) return -1; } - glGetIntegerv(attrib, (GLint *) value); + glGetIntegervFunc(attrib, (GLint *) value); return 0; #else SDL_Unsupported();