diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2012-04-05 01:53:20 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2012-04-05 01:53:20 -0400 |
commit | bcafbea2fccaaeb05cbeabbc84bf89fc234266c0 (patch) | |
tree | be8fa78c3a46244e923238bb625af0351f0577fe | |
parent | 448b5333ebdabac059a2481160d707e12afb97ee (diff) |
Make gears demo request animation frames
-rw-r--r-- | tests/hello_world_gles.c | 4 |
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); |