trival: Make the last of progs show the name
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 19 Feb 2009 21:48:21 +0000 (22:48 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Thu, 19 Feb 2009 21:50:18 +0000 (22:50 +0100)
progs/trivial/long-fixed-func.c
progs/trivial/tri-stencil.c
progs/trivial/tri-unfilled-fog.c

index 41ad25c..f2a29a9 100644 (file)
@@ -139,7 +139,7 @@ main(int argc, char **argv)
     glutInitWindowPosition(0, 0);
     glutInitWindowSize( 250, 250);
     glutInitDisplayMode(type);
-    if (glutCreateWindow("tri-long-fixedfunc") == GL_FALSE) {
+    if (glutCreateWindow(*argv) == GL_FALSE) {
        exit(1);
     }
     glewInit();
index 7686e16..9f68bca 100644 (file)
@@ -144,7 +144,7 @@ int main(int argc, char **argv)
     type = GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH | GLUT_STENCIL;
     glutInitDisplayMode(type);
 
-    if (glutCreateWindow("Stencil Test") == GL_FALSE) {
+    if (glutCreateWindow(*argv) == GL_FALSE) {
        exit(1);
     }
 
index 90444ae..113b8d0 100644 (file)
@@ -138,7 +138,7 @@ int main(int argc, char **argv)
    type |= (doubleBuffer) ? GLUT_DOUBLE : GLUT_SINGLE;
    glutInitDisplayMode(type);
 
-   if (glutCreateWindow("Filled and unfilled fog tri") == GL_FALSE) {
+   if (glutCreateWindow(*argv) == GL_FALSE) {
       exit(1);
    }