aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2020-04-22 11:51:51 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2020-04-22 11:51:51 +0200
commitd93235efc96122a8b9183b73b761395747bb205b (patch)
treeed182fe85edd3b2747aca04e0dcff64694c81a0f
parent767d383f068f17bde9fe4b910de817c15a015daa (diff)
downloadpatchmatrix-d93235efc96122a8b9183b73b761395747bb205b.tar.xz
Squashed 'subprojects/nk_pugl/' changes from ef4cddce..2535538f
2535538f enable GL double buffering by default. git-subtree-dir: subprojects/nk_pugl git-subtree-split: 2535538f97068c59eac154acc83668c57131a23e
-rw-r--r--nk_pugl/nk_pugl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/nk_pugl/nk_pugl.h b/nk_pugl/nk_pugl.h
index bd8b7bc..46c425e 100644
--- a/nk_pugl/nk_pugl.h
+++ b/nk_pugl/nk_pugl.h
@@ -1053,7 +1053,6 @@ nk_pugl_init(nk_pugl_window_t *win)
// init pugl
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];
@@ -1129,7 +1128,7 @@ nk_pugl_init(nk_pugl_window_t *win)
cfg->width, cfg->height);
}
puglSetViewHint(win->view, PUGL_RESIZABLE, cfg->resizable);
- puglSetViewHint(win->view, PUGL_DOUBLE_BUFFER, false);
+ puglSetViewHint(win->view, PUGL_DOUBLE_BUFFER, true);
puglSetViewHint(win->view, PUGL_SWAP_INTERVAL, 1);
puglSetHandle(win->view, win);
puglSetEventFunc(win->view, _nk_pugl_event_func);