mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
tests/texcmp: glewInit in wrong place
This commit is contained in:
parent
206eb50493
commit
ea26f28c8f
1 changed files with 1 additions and 1 deletions
|
|
@ -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") ) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue