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

Commit

Permalink
Actually use the function we took the trouble to get the pointer for.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 25, 2006
1 parent e8fb8b6 commit bd1dc9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/video/SDL_video.c
Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit bd1dc9f

Please sign in to comment.