From 82fea22607c610d000cd46cf404d06b57a9ea5aa Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 6 Jul 2022 13:46:24 -0400 Subject: [PATCH] glx: Fix return values from __glXGetDrawableAttribute This is intended to return true on attribute-found. Part-of: --- src/glx/glx_pbuffer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c index a3cc5049b06..9240b6c75ae 100644 --- a/src/glx/glx_pbuffer.c +++ b/src/glx/glx_pbuffer.c @@ -304,20 +304,20 @@ __glXGetDrawableAttribute(Display * dpy, GLXDrawable drawable, if (psc->driScreen->getBufferAge != NULL) *value = psc->driScreen->getBufferAge(pdraw); - return 0; + return 1; } if (pdraw) { if (attribute == GLX_SWAP_INTERVAL_EXT) { *value = pdraw->psc->driScreen->getSwapInterval(pdraw); - return 0; + return 1; } else if (attribute == GLX_MAX_SWAP_INTERVAL_EXT) { *value = pdraw->psc->driScreen->maxSwapInterval; - return 0; + return 1; } else if (attribute == GLX_LATE_SWAPS_TEAR_EXT) { *value = __glXExtensionBitIsEnabled(pdraw->psc, EXT_swap_control_tear_bit); - return 0; + return 1; } } #endif