diff options
Diffstat (limited to 'pugl/detail')
-rw-r--r-- | pugl/detail/implementation.c | 1 | ||||
-rw-r--r-- | pugl/detail/win_gl.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pugl/detail/implementation.c b/pugl/detail/implementation.c index 53af30b..1b7d4a4 100644 --- a/pugl/detail/implementation.c +++ b/pugl/detail/implementation.c @@ -39,6 +39,7 @@ puglSetDefaultHints(PuglHints hints) hints[PUGL_STENCIL_BITS] = 8; hints[PUGL_SAMPLES] = 0; hints[PUGL_DOUBLE_BUFFER] = PUGL_FALSE; + hints[PUGL_SWAP_INTERVAL] = 0; hints[PUGL_RESIZABLE] = PUGL_FALSE; hints[PUGL_IGNORE_KEY_REPEAT] = PUGL_FALSE; } 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; |