aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2018-11-09 12:59:23 +0100
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2018-11-09 12:59:23 +0100
commit3259ea1e878b27e387d21be405038c92da6c8ed2 (patch)
tree4efec7f9d4151501dd8587c0a46777b2999d156c
parentf65fb205c4336559da9b1a56e2738622683b639a (diff)
downloadcanvas.lv2-3259ea1e878b27e387d21be405038c92da6c8ed2.zip
canvas.lv2-3259ea1e878b27e387d21be405038c92da6c8ed2.tar.gz
canvas.lv2-3259ea1e878b27e387d21be405038c92da6c8ed2.tar.bz2
canvas.lv2-3259ea1e878b27e387d21be405038c92da6c8ed2.tar.xz
fix GL header inclusions.
-rw-r--r--canvas.lv2/render_nanovg.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/canvas.lv2/render_nanovg.h b/canvas.lv2/render_nanovg.h
index 308e306..3051afa 100644
--- a/canvas.lv2/render_nanovg.h
+++ b/canvas.lv2/render_nanovg.h
@@ -21,9 +21,15 @@
#include <assert.h>
#include <nanovg.h>
-#include <GL/glew.h>
+
+#if defined(__APPLE__)
+# include <OpenGL/gl.h>
+# include <OpenGL/glext.h>
+#else
+# include <GL/glew.h>
+#endif
+
#define NANOVG_GL2_IMPLEMENTATION
-#include <GL/gl.h>
#include <nanovg_gl.h>
#if defined(NANOVG_GL2_IMPLEMENTATION)