From 09a2de2a51058a2fab3ebdf71ccd856d3c613f7d Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 28 Oct 2024 12:09:50 +0100 Subject: [PATCH] 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: --- src/egl/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/egl/meson.build b/src/egl/meson.build index d4da7dbc0bd..3a5a32a6cf9 100644 --- a/src/egl/meson.build +++ b/src/egl/meson.build @@ -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')