summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-09-03 11:33:53 +1000
committerDave Airlie <airlied@redhat.com>2009-09-03 11:33:53 +1000
commitea26f28c8fd68593a1f47053e04e9d6e110a23b9 (patch)
tree6091e2bb6a8dbdeb50bae0bad3bbed3b3acc8927 /progs
parent206eb504930e5c5f8c947949bcaf20b11627fac7 (diff)
tests/texcmp: glewInit in wrong place
Diffstat (limited to 'progs')
-rw-r--r--progs/tests/texcmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/tests/texcmp.c b/progs/tests/texcmp.c
index 52c504a3188..d1e829d1b73 100644
--- a/progs/tests/texcmp.c
+++ b/progs/tests/texcmp.c
@@ -371,11 +371,11 @@ int main( int argc, char *argv[] )
glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE );
if (glutCreateWindow(argv[0]) <= 0) {
- glewInit();
printf("Couldn't create window\n");
exit(0);
}
+ glewInit();
gl_version = atof( (const char *) glGetString( GL_VERSION ) );
if ( (gl_version < 1.3)
&& !glutExtensionSupported("GL_ARB_texture_compression") ) {