aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2020-09-19 11:48:50 +0200
committerDavid Robillard <d@drobilla.net>2020-09-19 18:51:35 +0200
commit1b1a1c3a48e31ad338d22b340408465843b25871 (patch)
treeda549521328fcd841d508efe3d4d16fa6edc079b
parent44a7690c42b496e5332fa265e0308211c4afde45 (diff)
Call glXSwapIntervalEXT inside active context
Some NVIDIA cards using the proprietary drivers (e.g. GeForce GTX 460/550) need that.
-rw-r--r--pugl/detail/x11_gl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pugl/detail/x11_gl.c b/pugl/detail/x11_gl.c
index 969581b..f5e6b8d 100644
--- a/pugl/detail/x11_gl.c
+++ b/pugl/detail/x11_gl.c
@@ -175,7 +175,9 @@ puglX11GlCreate(PuglView* view)
const int swapInterval = view->hints[PUGL_SWAP_INTERVAL];
if (glXSwapIntervalEXT && swapInterval != PUGL_DONT_CARE) {
+ puglX11GlEnter(view, NULL);
glXSwapIntervalEXT(display, impl->win, swapInterval);
+ puglX11GlLeave(view, NULL);
}
glXGetConfig(impl->display,