diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2023-04-21 10:25:53 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-05-15 03:50:30 +0000 |
commit | 4a379f7637a940cb9bcefa95203bdaecda934f95 (patch) | |
tree | 19c69dc4dc038c0b92db1dfa76197a26a49ccfc8 | |
parent | d1dd36a74e17ca8895765d892e544e3eff349fea (diff) | |
download | mesa-4a379f7637a940cb9bcefa95203bdaecda934f95.tar.gz |
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>
-rw-r--r-- | src/glx/glxext.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |