aboutsummaryrefslogtreecommitdiff
path: root/tests/hello_world_gles_deriv.c
diff options
context:
space:
mode:
authorJez Ng <me@jezng.com>2013-06-18 01:16:56 -0700
committerJez Ng <me@jezng.com>2013-06-18 20:35:34 -0700
commitc669e63b4da7de25f1622748c40331f7ce282feb (patch)
tree9bd9da0af8875305262f40b5f1bfea6791cbc952 /tests/hello_world_gles_deriv.c
parentad01a1896200d9ab8eff3f8485a99e70e72530c4 (diff)
Make more tests use btest().
Also fix test_glgears_deriv so that it actually animates its gears.
Diffstat (limited to 'tests/hello_world_gles_deriv.c')
-rw-r--r--tests/hello_world_gles_deriv.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/hello_world_gles_deriv.c b/tests/hello_world_gles_deriv.c
index 2e0f0664..c5354d4e 100644
--- a/tests/hello_world_gles_deriv.c
+++ b/tests/hello_world_gles_deriv.c
@@ -46,8 +46,13 @@
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#include <Glut/glut.h>
+#else
#include <GL/gl.h>
#include <GL/glut.h>
+#endif
#ifndef HAVE_BUILTIN_SINCOS
#include "sincos.h"
@@ -716,7 +721,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);