aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/hello_world_gles.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/hello_world_gles.c b/tests/hello_world_gles.c
index aa0fc02d..1a8a2db6 100644
--- a/tests/hello_world_gles.c
+++ b/tests/hello_world_gles.c
@@ -616,6 +616,8 @@ gears_idle(void)
tRate0 = t;
frames = 0;
}
+
+ glutIdleFunc (gears_idle);
}
static const char vertex_shader[] =
@@ -723,7 +725,7 @@ main(int argc, char *argv[])
glutCreateWindow("es2gears");
/* Set up glut callback functions */
- gears_idle();
+ glutIdleFunc (gears_idle);
glutReshapeFunc(gears_reshape);
glutDisplayFunc(gears_draw);
glutSpecialFunc(gears_special);