1 $NetBSD: patch-src_glx_glx__pbuffer.c,v 1.1 2023/07/14 06:27:52 pho Exp $
3 GLX_EXT_swap_control doesn't work on systems running on vmwgfx. I don't
4 think this is a proper fix, and the upstream bug report has been seemingly
5 stuck, but is still necessary for VMware guests. glxgear(1) from
6 graphics/glx-utils crashes on startup without this workaround.
8 https://gitlab.freedesktop.org/mesa/mesa/-/issues/4495
10 --- src/glx/glx_pbuffer.c.orig 2023-07-12 04:37:57.945531844 +0000
11 +++ src/glx/glx_pbuffer.c
12 @@ -309,7 +309,8 @@ __glXGetDrawableAttribute(Display * dpy,
16 - if (attribute == GLX_SWAP_INTERVAL_EXT) {
17 + if (attribute == GLX_SWAP_INTERVAL_EXT
18 + && pdraw->psc->driScreen->getSwapInterval != NULL) {
19 *value = pdraw->psc->driScreen->getSwapInterval(pdraw);
21 } else if (attribute == GLX_MAX_SWAP_INTERVAL_EXT) {