Mesa (master): trival: Make the last of progs show the name
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Thu Feb 19 21:52:27 UTC 2009
Module: Mesa
Branch: master
Commit: 4e37f108065cc13a01117915c38d185811df6e4f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e37f108065cc13a01117915c38d185811df6e4f
Author: Jakob Bornecrantz <jakob at vmware.com>
Date: Thu Feb 19 22:48:21 2009 +0100
trival: Make the last of progs show the name
---
progs/trivial/long-fixed-func.c | 2 +-
progs/trivial/tri-stencil.c | 2 +-
progs/trivial/tri-unfilled-fog.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/progs/trivial/long-fixed-func.c b/progs/trivial/long-fixed-func.c
index 41ad25c..f2a29a9 100644
--- a/progs/trivial/long-fixed-func.c
+++ b/progs/trivial/long-fixed-func.c
@@ -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();
diff --git a/progs/trivial/tri-stencil.c b/progs/trivial/tri-stencil.c
index 7686e16..9f68bca 100644
--- a/progs/trivial/tri-stencil.c
+++ b/progs/trivial/tri-stencil.c
@@ -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);
}
diff --git a/progs/trivial/tri-unfilled-fog.c b/progs/trivial/tri-unfilled-fog.c
index 90444ae..113b8d0 100644
--- a/progs/trivial/tri-unfilled-fog.c
+++ b/progs/trivial/tri-unfilled-fog.c
@@ -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);
}
More information about the mesa-commit
mailing list