egl: error out during setup if the configuration is invalid

If EGL is built, it needs a driver; if we don't abort setup here,
the compilation fails with:

    ld: error: undefined symbol: _eglDriver

See #11397 or #11956 for instance.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31870>
This commit is contained in:
Eric Engestrom 2024-10-28 12:09:50 +01:00 committed by Marge Bot
parent 16aec27515
commit 09a2de2a51

View file

@ -141,6 +141,9 @@ elif with_platform_windows
files_egl += files('drivers/wgl/egl_wgl.c')
incs_for_egl += [inc_wgl, inc_gallium, inc_gallium_aux, inc_mesa, inc_mapi]
link_for_egl += libgallium_wgl
else
error('No EGL driver available.')
endif
if cc.has_function('mincore')