Explorar el Código

tests/texcmp: glewInit in wrong place

tags/mesa_7_6_rc1
Dave Airlie hace 16 años
padre
commit
ea26f28c8f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      progs/tests/texcmp.c

+ 1
- 1
progs/tests/texcmp.c Ver fichero

@@ -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") ) {

Cargando…
Cancelar
Guardar