aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-11-09 13:00:20 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-11-09 13:00:20 +0100
commit070b5347d1f4a5b6e2cfee206cee43349c50fea3 (patch)
tree4efec7f9d4151501dd8587c0a46777b2999d156c
parentfb1cec5d3b2ee6fb89d7adb12933d91689b187b5 (diff)
downloadcanvas_display.lv2-070b5347d1f4a5b6e2cfee206cee43349c50fea3.tar.xz
Squashed 'canvas.lv2/' changes from f65fb20..3259ea1
3259ea1 fix GL header inclusions. git-subtree-dir: canvas.lv2 git-subtree-split: 3259ea1e878b27e387d21be405038c92da6c8ed2
-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)