From 1b1a1c3a48e31ad338d22b340408465843b25871 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Sat, 19 Sep 2020 11:48:50 +0200 Subject: Call glXSwapIntervalEXT inside active context Some NVIDIA cards using the proprietary drivers (e.g. GeForce GTX 460/550) need that. --- pugl/detail/x11_gl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pugl/detail/x11_gl.c') 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, -- cgit v1.2.1