Module: Mesa
Branch: main
Commit: 4a379f7637a940cb9bcefa95203bdaecda934f95
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4a379f7637a940cb9bcefa95203bdaecda934f95

Author: Filip Gawin <[email protected]>
Date:   Fri Apr 21 10:25:53 2023 +0200

glx: fix build with APPLEGL

fixes: 1eab7e69e2ba84244f551f6901f4307a687a9504

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8885
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22621>

---

 src/glx/glxext.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/glx/glxext.c b/src/glx/glxext.c
index 4567a5ce6e5..01d5bda497c 100644
--- a/src/glx/glxext.c
+++ b/src/glx/glxext.c
@@ -812,11 +812,12 @@ AllocAndFetchScreenConfigs(Display * dpy, struct 
glx_display * priv)
         psc = priv->driswDisplay->createScreen(i, priv);
 #endif /* GLX_DIRECT_RENDERING && !GLX_USE_APPLEGL */
 
+      bool indirect = false;
+
 #if defined(GLX_USE_APPLEGL)
       if (psc == NULL)
          psc = applegl_create_screen(i, priv);
 #else
-      bool indirect = false;
       if (psc == NULL)
       {
          psc = indirect_create_screen(i, priv);

Reply via email to