pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / x11 / mesa / patches / patch-src_glx_glx__pbuffer.c.patch
blobcfd8ab9d54aa27c166d05035e6cd3b7227d96a97
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,
15 if (pdraw) {
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);
20 return 0;
21 } else if (attribute == GLX_MAX_SWAP_INTERVAL_EXT) {