From bb01cc1b9562b802ae778dfe082b0dac709e1b00 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Aug 2019 09:58:34 +0200 Subject: Add swap interval hint --- test/pugl_test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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); -- cgit v1.2.1