diff options
Diffstat (limited to 'canvas.lv2/canvas.lv2/render_nanovg.h')
-rw-r--r-- | canvas.lv2/canvas.lv2/render_nanovg.h | 10 |
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) |