mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
48ebbe2777
commit
20b806284a
1 changed files with 7 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue