Mesa (master): tests/texcmp: glewInit in wrong place
Dave Airlie
airlied at kemper.freedesktop.org
Thu Sep 3 01:39:34 UTC 2009
Module: Mesa
Branch: master
Commit: ea26f28c8fd68593a1f47053e04e9d6e110a23b9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea26f28c8fd68593a1f47053e04e9d6e110a23b9
Author: Dave Airlie <airlied at redhat.com>
Date: Thu Sep 3 11:33:53 2009 +1000
tests/texcmp: glewInit in wrong place
---
progs/tests/texcmp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/progs/tests/texcmp.c b/progs/tests/texcmp.c
index 52c504a..d1e829d 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") ) {
More information about the mesa-commit
mailing list