From: Dave Airlie Date: Thu, 3 Sep 2009 01:33:53 +0000 (+1000) Subject: tests/texcmp: glewInit in wrong place X-Git-Tag: 062012170305~15523^2~222 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea26f28c8fd68593a1f47053e04e9d6e110a23b9;p=profile%2Fivi%2Fmesa.git tests/texcmp: glewInit in wrong place --- 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") ) {