diff options
Diffstat (limited to 'tests/hello_world_gles_deriv.c')
-rw-r--r-- | tests/hello_world_gles_deriv.c | 7 |
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); |