summaryrefslogtreecommitdiff
path: root/src/glx
diff options
context:
space:
mode:
authorMichel Dänzer <mdaenzer@redhat.com>2023-12-14 11:43:44 +0100
committerMarge Bot <emma+marge@anholt.net>2023-12-18 17:52:09 +0000
commitf0594915e631877bcdf8ce67636143a017b41fb1 (patch)
treed35d4607f0f831a9aa2b7a6f40f8d88eaf39cfa2 /src/glx
parent9548f969bda1075b20dd56a73cbf1e35c0cf7aba (diff)
glx: Handle IGNORE_GLX_SWAP_METHOD_OML regardless of GLX_USE_APPLEGL
Avoids tons of WARNING: unknown fbconfig attribute from server: tag 0x8060 value 0x8063 messages with LIBGL_DEBUG=verbose. Fixes: e64ab3e4a94c ("glx: Delete support for GLX_OML_swap_method.") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26685>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/glxext.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glx/glxext.c b/src/glx/glxext.c
index 454f2c36a77..05c825a2b07 100644
--- a/src/glx/glxext.c
+++ b/src/glx/glxext.c
@@ -563,12 +563,11 @@ __glXInitializeVisualConfigFromTags(struct glx_config * config, int count,
case GLX_SAMPLES_SGIS:
config->samples = *bp++;
break;
-#ifdef GLX_USE_APPLEGL
case IGNORE_GLX_SWAP_METHOD_OML:
/* We ignore this tag. See the comment above this function. */
++bp;
break;
-#else
+#ifndef GLX_USE_APPLEGL
case GLX_BIND_TO_TEXTURE_RGB_EXT:
config->bindToTextureRgb = *bp++;
break;