mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-04 16:50:31 +01:00
glx: Guard some of the bind_extensions() code with the same conditions as glx_screens frontend_screen member.
Configution like simple MacOS builds do not have `frontend_screen` and fail to build.
Fixes: 34dea2b38e ("glx: unify extension binding")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12317
Tested-by: Yurii Kolesnykov <root@yurikoles.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32656>
This commit is contained in:
parent
0aa218328d
commit
48ebbe2777
1 changed files with 2 additions and 0 deletions
|
|
@ -790,6 +790,7 @@ bind_extensions(struct glx_screen *psc, const char *driverName)
|
|||
__glXEnableDirectExtension(psc, "GLX_INTEL_swap_event");
|
||||
}
|
||||
|
||||
#if defined(GLX_DIRECT_RENDERING) && (!defined(GLX_USE_APPLEGL) || defined(GLX_USE_APPLE))
|
||||
mask = driGetAPIMask(psc->frontend_screen);
|
||||
|
||||
__glXEnableDirectExtension(psc, "GLX_ARB_create_context");
|
||||
|
|
@ -846,6 +847,7 @@ bind_extensions(struct glx_screen *psc, const char *driverName)
|
|||
psc->keep_native_window_glx_drawable = keep_native_window_glx_drawable;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue