aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_window_demo.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-08 18:40:13 +0100
committerDavid Robillard <d@drobilla.net>2020-03-08 18:40:13 +0100
commit7f0169be0db0f16a91d859a54b22535f26fdcb38 (patch)
treeb055403fb76449954d49a318e2ec90616745f27b /examples/pugl_window_demo.c
parent838deb81c24030d7d7891ad1f1317f63428bf29b (diff)
downloadpugl-7f0169be0db0f16a91d859a54b22535f26fdcb38.tar.gz
pugl-7f0169be0db0f16a91d859a54b22535f26fdcb38.tar.bz2
pugl-7f0169be0db0f16a91d859a54b22535f26fdcb38.zip
Add vsync command line options to demos
Diffstat (limited to 'examples/pugl_window_demo.c')
-rw-r--r--examples/pugl_window_demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c
index e9c09a3..fdcd8cb 100644
--- a/examples/pugl_window_demo.c
+++ b/examples/pugl_window_demo.c
@@ -201,7 +201,7 @@ main(int argc, char** argv)
puglSetViewHint(view, PUGL_RESIZABLE, opts.resizable);
puglSetViewHint(view, PUGL_SAMPLES, opts.samples);
puglSetViewHint(view, PUGL_DOUBLE_BUFFER, opts.doubleBuffer);
- puglSetViewHint(view, PUGL_SWAP_INTERVAL, 0);//opts.doubleBuffer && i == 0);
+ puglSetViewHint(view, PUGL_SWAP_INTERVAL, opts.sync);
puglSetViewHint(view, PUGL_IGNORE_KEY_REPEAT, opts.ignoreKeyRepeat);
puglSetHandle(view, cube);
puglSetEventFunc(view, onEvent);