build: Make GLX dependent on X11

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2354>
This commit is contained in:
Christian Rauch 2022-05-04 12:21:23 +02:00 committed by Bilal Elmoussaoui
parent bd94adaf74
commit 98f0b20e03

View File

@ -177,7 +177,7 @@ if have_egl
egl_dep = dependency('egl')
endif
have_glx = get_option('glx')
have_glx = get_option('glx') and have_x11_client
if have_glx
if not have_gl
error('GLX support requires OpenGL to be enabled')