aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-04-22 10:53:59 +0200
committerDavid Robillard <d@drobilla.net>2020-04-22 10:53:59 +0200
commit6e42e48ad75af5ceaaabba95bc56a2a1fc0737db (patch)
tree997e1c90b340b5601a014bc4f0c24b1ae0c559ec
parentcfdabdb66f4238b454eccdf4839fa3009bd7b272 (diff)
downloadpugl-6e42e48ad75af5ceaaabba95bc56a2a1fc0737db.tar.gz
pugl-6e42e48ad75af5ceaaabba95bc56a2a1fc0737db.tar.bz2
pugl-6e42e48ad75af5ceaaabba95bc56a2a1fc0737db.zip
C++ Demo: Fix sync option
-rw-r--r--examples/pugl_cxx_demo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pugl_cxx_demo.cpp b/examples/pugl_cxx_demo.cpp
index 7b51e7e..6a7538f 100644
--- a/examples/pugl_cxx_demo.cpp
+++ b/examples/pugl_cxx_demo.cpp
@@ -128,7 +128,7 @@ main(int argc, char** argv)
view.setHint(pugl::ViewHint::resizable, opts.resizable);
view.setHint(pugl::ViewHint::samples, opts.samples);
view.setHint(pugl::ViewHint::doubleBuffer, opts.doubleBuffer);
- view.setHint(pugl::ViewHint::swapInterval, opts.doubleBuffer);
+ view.setHint(pugl::ViewHint::swapInterval, opts.sync);
view.setHint(pugl::ViewHint::ignoreKeyRepeat, opts.ignoreKeyRepeat);
view.realize();
view.showWindow();