aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-08-04 09:58:34 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:34:39 +0200
commitbb01cc1b9562b802ae778dfe082b0dac709e1b00 (patch)
tree00a23bc9648cf4a1db297998b31c837325ed2b04 /test
parent2a0287b0db5bdde4e8b9de91ddc560233e1ee343 (diff)
downloadpugl-bb01cc1b9562b802ae778dfe082b0dac709e1b00.tar.gz
pugl-bb01cc1b9562b802ae778dfe082b0dac709e1b00.tar.bz2
pugl-bb01cc1b9562b802ae778dfe082b0dac709e1b00.zip
Add swap interval hint
Diffstat (limited to 'test')
-rw-r--r--test/pugl_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/pugl_test.c b/test/pugl_test.c
index 65f764e..7ee04b8 100644
--- a/test/pugl_test.c
+++ b/test/pugl_test.c
@@ -324,6 +324,7 @@ main(int argc, char** argv)
puglInitWindowHint(app.parent, PUGL_RESIZABLE, resizable);
puglInitWindowHint(app.parent, PUGL_SAMPLES, samples);
puglInitWindowHint(app.parent, PUGL_DOUBLE_BUFFER, doubleBuffer);
+ puglInitWindowHint(app.parent, PUGL_SWAP_INTERVAL, doubleBuffer);
puglInitWindowHint(app.parent, PUGL_IGNORE_KEY_REPEAT, ignoreKeyRepeat);
puglSetHandle(app.parent, &app);
puglSetEventFunc(app.parent, onParentEvent);
@@ -341,6 +342,7 @@ main(int argc, char** argv)
puglInitWindowHint(app.child, PUGL_SAMPLES, samples);
puglInitWindowHint(app.child, PUGL_DOUBLE_BUFFER, doubleBuffer);
+ puglInitWindowHint(app.child, PUGL_SWAP_INTERVAL, 0);
puglInitBackend(app.child, puglGlBackend());
puglInitWindowHint(app.child, PUGL_IGNORE_KEY_REPEAT, ignoreKeyRepeat);
puglSetHandle(app.child, &app);