fp: put test name in window title, add run script
diff --git a/progs/fp/fp-tri.c b/progs/fp/fp-tri.c
index cb991f8..c07cfa2 100644
--- a/progs/fp/fp-tri.c
+++ b/progs/fp/fp-tri.c
@@ -154,11 +154,11 @@
glutInitWindowPosition(0, 0);
glutInitWindowSize(250, 250);
glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH);
- glutCreateWindow(argv[0]);
+ args(argc, argv);
+ glutCreateWindow(filename);
glutReshapeFunc(Reshape);
glutKeyboardFunc(Key);
glutDisplayFunc(Display);
- args(argc, argv);
Init();
if (show_fps) {
signal(SIGALRM, alarmhandler);