From: Keith Whitwell Date: Wed, 21 May 2008 12:17:48 +0000 (+0100) Subject: vp-tris: use test name as window name X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f13d4cd58ec2bd60fd9a31cb1b2fb4bc8ee4ec7;p=mesa.git vp-tris: use test name as window name --- diff --git a/progs/vp/vp-tris.c b/progs/vp/vp-tris.c index f9e6cdad74d..eb450cb5981 100644 --- a/progs/vp/vp-tris.c +++ b/progs/vp/vp-tris.c @@ -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 );