aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2021-07-14 23:05:46 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2021-07-14 23:05:46 +0200
commit65266d926aba49b13ecf65aa215fb2245c0695d4 (patch)
tree3aa1e8daa4004568feda24f1af246ed9d9737ccf
parentd6c6ac95f1305f800e42789fa198b96858a9702e (diff)
downloadsynthpod-65266d926aba49b13ecf65aa215fb2245c0695d4.tar.xz
Squashed 'canvas.lv2/' changes from 02633952f..93127979d
93127979d 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 72801539..3449d4ac 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"