diff --git a/glxgears.c b/glxgears.c index 70ff8b0..c9b4754 100644 --- a/glxgears.c +++ b/glxgears.c @@ -352,7 +352,9 @@ static void visible(int vis) { update_idle_func(); } -void parse_args(int argc, char *argv[]) { +static char *window_title = "Gears"; + +static void parse_args(int argc, char *argv[]) { for (GLint i = 1; i < argc; i++) if (strcmp(argv[i], "-info") == 0) { printf("GL_VENDOR = %s\n", (char *)glGetString(GL_VENDOR)); @@ -372,7 +374,7 @@ int main(int argc, char *argv[]) { parse_args(argc, argv); glutInit(&argc, argv); glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE); - win = glutCreateWindow("Gears"); + win = glutCreateWindow(window_title); init_scene(); glutDisplayFunc(draw);