aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_gl3_demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pugl_gl3_demo.c')
-rw-r--r--examples/pugl_gl3_demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pugl_gl3_demo.c b/examples/pugl_gl3_demo.c
index 52c5dd3..9efe185 100644
--- a/examples/pugl_gl3_demo.c
+++ b/examples/pugl_gl3_demo.c
@@ -268,7 +268,7 @@ main(int argc, char** argv)
puglSetViewHint(app.view, PUGL_RESIZABLE, app.opts.resizable);
puglSetViewHint(app.view, PUGL_SAMPLES, app.opts.samples);
puglSetViewHint(app.view, PUGL_DOUBLE_BUFFER, app.opts.doubleBuffer);
- puglSetViewHint(app.view, PUGL_SWAP_INTERVAL, app.opts.doubleBuffer);
+ puglSetViewHint(app.view, PUGL_SWAP_INTERVAL, app.opts.sync);
puglSetViewHint(app.view, PUGL_IGNORE_KEY_REPEAT, PUGL_TRUE);
puglSetHandle(app.view, &app);
puglSetEventFunc(app.view, onEvent);