vp-tris: use test name as window name
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 21 May 2008 12:17:48 +0000 (13:17 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 23 May 2008 08:16:56 +0000 (09:16 +0100)
progs/vp/vp-tris.c

index f9e6cdad74dce76d42d10534ce5a262f2454f57c..eb450cb5981c3f5c9f1b729ab7ecac83171f9b8a 100644 (file)
@@ -230,7 +230,7 @@ int main( int argc, char *argv[] )
    glutInitWindowPosition( 0, 0 );
    glutInitWindowSize( 250, 250 );
    glutInitDisplayMode( GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH );
-   glutCreateWindow(argv[0]);
+   glutCreateWindow(argv[argc-1]);
    glutReshapeFunc( Reshape );
    glutKeyboardFunc( Key );
    glutDisplayFunc( Display );