aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2020-04-20 19:47:50 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2020-04-20 19:47:50 +0200
commit13b3dcb7f3dce868c6666b735e20f326ea712dbc (patch)
treeffb842b42dba68db8a37720fd201c7d8fbdca184
parent7562f3f97facad32818ce306f1753ead28adf23d (diff)
parent767d383f068f17bde9fe4b910de817c15a015daa (diff)
downloadpatchmatrix-13b3dcb7f3dce868c6666b735e20f326ea712dbc.tar.xz
Merge commit '767d383f068f17bde9fe4b910de817c15a015daa'
-rw-r--r--subprojects/nk_pugl/VERSION2
-rw-r--r--subprojects/nk_pugl/example/example.c1
-rw-r--r--subprojects/nk_pugl/nk_pugl/nk_pugl.h5
3 files changed, 6 insertions, 2 deletions
diff --git a/subprojects/nk_pugl/VERSION b/subprojects/nk_pugl/VERSION
index 39e1a8e..eac5392 100644
--- a/subprojects/nk_pugl/VERSION
+++ b/subprojects/nk_pugl/VERSION
@@ -1 +1 @@
-0.1.135
+0.1.139
diff --git a/subprojects/nk_pugl/example/example.c b/subprojects/nk_pugl/example/example.c
index 8efb947..1c505da 100644
--- a/subprojects/nk_pugl/example/example.c
+++ b/subprojects/nk_pugl/example/example.c
@@ -57,6 +57,7 @@ main(int argc __attribute__((unused)), char **argv __attribute__((unused)))
cfg->height = 720;
cfg->resizable = true;
cfg->parent = 0;
+ cfg->threads = false;
cfg->ignore = false;
cfg->class = "nk_pugl_example";
cfg->title = "Nk Pugl Example";
diff --git a/subprojects/nk_pugl/nk_pugl/nk_pugl.h b/subprojects/nk_pugl/nk_pugl/nk_pugl.h
index 9c7eb05..bd8b7bc 100644
--- a/subprojects/nk_pugl/nk_pugl/nk_pugl.h
+++ b/subprojects/nk_pugl/nk_pugl/nk_pugl.h
@@ -96,6 +96,7 @@ struct _nk_pugl_config_t {
} font;
intptr_t parent;
+ bool threads;
LV2UI_Resize *host_resize;
@@ -1050,7 +1051,9 @@ nk_pugl_init(nk_pugl_window_t *win)
cfg->min_height *= win->scale;
// init pugl
- win->world = puglNewWorld(cfg->parent ? PUGL_MODULE : PUGL_PROGRAM, 0);
+ win->world = puglNewWorld(cfg->parent ? PUGL_MODULE : PUGL_PROGRAM,
+ cfg->threads ? PUGL_WORLD_THREADS : 0);
+ fprintf(stderr, "threads: %i\n", cfg->threads);
#if defined(__APPLE__) || defined(_WIN32)
uint8_t bytes [0x10];