aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2021-07-14 23:05:49 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2021-07-14 23:05:49 +0200
commite74f489a2f82f733dd549f85313ca8cd22e1186a (patch)
tree3aa1e8daa4004568feda24f1af246ed9d9737ccf
parent3fd7c765268b5a56a31952012f2bcb7524de00e1 (diff)
downloadcanvas_display.lv2-e74f489a2f82f733dd549f85313ca8cd22e1186a.tar.xz
Squashed 'canvas.lv2/' changes from 0263395..9312797
9312797 add define to skip nanovg implementation. git-subtree-dir: canvas.lv2 git-subtree-split: 93127979df1af3f7e5f8ef4f255ba2d6366d893c
-rw-r--r--canvas.lv2/render_nanovg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/canvas.lv2/render_nanovg.h b/canvas.lv2/render_nanovg.h
index 7280153..3449d4a 100644
--- a/canvas.lv2/render_nanovg.h
+++ b/canvas.lv2/render_nanovg.h
@@ -31,7 +31,10 @@
# include <GL/glew.h>
#endif
-#define NANOVG_GLES3_IMPLEMENTATION
+#if !defined(LV2_CANVAS_RENDER_NANOVG_NO_IMPLEMENTATION)
+# define NANOVG_GLES3_IMPLEMENTATION
+#endif
+
#include <nanovg_gl.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-compare"