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
commitaa7390c1ecfbcab1f74def0c18b7c60c5ab9eeda (patch)
tree435333108a140cb09c35957c45b9a655183da630
parent0971de95f66ab82882e1b22b4288d4666a4b4201 (diff)
parent070b5347d1f4a5b6e2cfee206cee43349c50fea3 (diff)
downloadcanvas_display.lv2-aa7390c1ecfbcab1f74def0c18b7c60c5ab9eeda.tar.xz
Merge commit '070b5347d1f4a5b6e2cfee206cee43349c50fea3'
-rw-r--r--canvas.lv2/canvas.lv2/render_nanovg.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/canvas.lv2/canvas.lv2/render_nanovg.h b/canvas.lv2/canvas.lv2/render_nanovg.h
index 308e306..3051afa 100644
--- a/canvas.lv2/canvas.lv2/render_nanovg.h
+++ b/canvas.lv2/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)