Commit c5da9eef authored by Sam Lantinga's avatar Sam Lantinga

Actually use the function we took the trouble to get the pointer for.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401984
parent 7c4bd583
...@@ -2261,13 +2261,13 @@ SDL_GL_GetAttribute(SDL_GLattr attr, int *value) ...@@ -2261,13 +2261,13 @@ SDL_GL_GetAttribute(SDL_GLattr attr, int *value)
GLint component; GLint component;
/* there doesn't seem to be a single flag in OpenGL for this! */ /* 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; bits += component;
glGetIntegerv(GL_GREEN_BITS, &component); glGetIntegervFunc(GL_GREEN_BITS, &component);
bits += component; bits += component;
glGetIntegerv(GL_BLUE_BITS, &component); glGetIntegervFunc(GL_BLUE_BITS, &component);
bits += component; bits += component;
glGetIntegerv(GL_ALPHA_BITS, &component); glGetIntegervFunc(GL_ALPHA_BITS, &component);
bits += component; bits += component;
*value = bits; *value = bits;
...@@ -2284,7 +2284,7 @@ SDL_GL_GetAttribute(SDL_GLattr attr, int *value) ...@@ -2284,7 +2284,7 @@ SDL_GL_GetAttribute(SDL_GLattr attr, int *value)
return -1; return -1;
} }
glGetIntegerv(attrib, (GLint *) value); glGetIntegervFunc(attrib, (GLint *) value);
return 0; return 0;
#else #else
SDL_Unsupported(); SDL_Unsupported();
......
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