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 /pugl/detail/win_gl.c | |
parent | 2a0287b0db5bdde4e8b9de91ddc560233e1ee343 (diff) | |
download | pugl-bb01cc1b9562b802ae778dfe082b0dac709e1b00.tar.gz pugl-bb01cc1b9562b802ae778dfe082b0dac709e1b00.tar.bz2 pugl-bb01cc1b9562b802ae778dfe082b0dac709e1b00.zip |
Add swap interval hint
Diffstat (limited to 'pugl/detail/win_gl.c')
-rw-r--r-- | pugl/detail/win_gl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/detail/win_gl.c b/pugl/detail/win_gl.c index 0768a4e..eb7771c 100644 --- a/pugl/detail/win_gl.c +++ b/pugl/detail/win_gl.c @@ -220,7 +220,7 @@ puglWinGlCreate(PuglView* view) // Enter context and set swap interval wglMakeCurrent(impl->hdc, surface->hglrc); if (surface->procs.wglSwapInterval) { - surface->procs.wglSwapInterval(1); + surface->procs.wglSwapInterval(view->hints[PUGL_SWAP_INTERVAL]); } return 0; |