Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added test for GLSL version string.
--HG--
branch : trunk
  • Loading branch information
icculus committed Jun 29, 2008
1 parent e8f6e56 commit b5f2d87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions glcaps.c
Expand Up @@ -33,6 +33,7 @@ typedef WINGDIAPI const GLubyte * (APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
int main(int argc, char **argv)
{
GLint val = 0;
const char *str = NULL;

SDL_Init(SDL_INIT_VIDEO);
SDL_GL_LoadLibrary(NULL);
Expand Down Expand Up @@ -100,6 +101,8 @@ int main(int argc, char **argv)
pglGetIntegerv(x, &val); \
printf(#x ": %d\n", (int) val);

str = (const char *) pglGetString(GL_SHADING_LANGUAGE_VERSION_ARB);
printf("GL_SHADING_LANGUAGE_VERSION_ARB: %s\n", str);
getval(GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB);
getval(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB);
getval(GL_MAX_VARYING_FLOATS_ARB);
Expand Down

0 comments on commit b5f2d87

Please sign in to comment.