diff options
author | David Robillard <d@drobilla.net> | 2019-08-04 09:58:34 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-03 08:34:39 +0200 |
commit | bb01cc1b9562b802ae778dfe082b0dac709e1b00 (patch) | |
tree | 00a23bc9648cf4a1db297998b31c837325ed2b04 /test | |
parent | 2a0287b0db5bdde4e8b9de91ddc560233e1ee343 (diff) |
Add swap interval hint
Diffstat (limited to 'test')
-rw-r--r-- | test/pugl_test.c | 2 |
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); |