aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2021-07-14 23:05:15 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2021-07-14 23:05:15 +0200
commit93127979df1af3f7e5f8ef4f255ba2d6366d893c (patch)
tree3aa1e8daa4004568feda24f1af246ed9d9737ccf
parent02633952fb6fbbd1cd85242f3eef14e85f39c733 (diff)
downloadcanvas.lv2-master.tar.xz
add define to skip nanovg implementation.HEADmaster
-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"