diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2020-09-19 11:48:50 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-09-19 18:51:35 +0200 |
commit | 1b1a1c3a48e31ad338d22b340408465843b25871 (patch) | |
tree | da549521328fcd841d508efe3d4d16fa6edc079b /pugl/detail/x11_gl.c | |
parent | 44a7690c42b496e5332fa265e0308211c4afde45 (diff) | |
download | pugl-1b1a1c3a48e31ad338d22b340408465843b25871.tar.gz pugl-1b1a1c3a48e31ad338d22b340408465843b25871.tar.bz2 pugl-1b1a1c3a48e31ad338d22b340408465843b25871.zip |
Call glXSwapIntervalEXT inside active context
Some NVIDIA cards using the proprietary drivers (e.g. GeForce GTX 460/550)
need that.
Diffstat (limited to 'pugl/detail/x11_gl.c')
-rw-r--r-- | pugl/detail/x11_gl.c | 2 |
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, |