glx: Add back in applegl_create_display() so the OpenGL.framework, on MacOS, pointer get setup.

Fixes: 4e8740370a ("glx: rework __glXInitialize")

Tested-by: Yurii Kolesnykov <root@yurikoles.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32656>
This commit is contained in:
duncan.hopkins
2024-12-16 11:49:33 +00:00
committed by Marge Bot
parent 48ebbe2777
commit 20b806284a

View File

@@ -1080,6 +1080,13 @@ __glXInitialize(Display * dpy)
glx_driver |= GLX_DRIVER_SW;
#endif
#if defined(GLX_USE_APPLEGL) && !defined(GLX_USE_APPLE)
if (!applegl_create_display(dpyPriv)) {
free(dpyPriv);
return NULL;
}
#endif
if (!AllocAndFetchScreenConfigs(dpy, dpyPriv, glx_driver, !env)) {
Bool fail = True;
#if defined(GLX_DIRECT_RENDERING) && (!defined(GLX_USE_APPLEGL) || defined(GLX_USE_APPLE))