meson: gl: fix detection of glx without gl

We need to check for libGL if we may use desktop OpenGL *or* GLX.
This commit is contained in:
Matthew Waters 2016-10-18 14:11:26 +11:00 committed by Tim-Philipp Müller
parent f70d4ec22d
commit 78d8e895df

View file

@ -209,7 +209,7 @@ gl_include_header = '''
# Desktop OpenGL checks
gl_dep = unneeded_dep
glx_dep = unneeded_dep
if need_api_opengl != 'no' and need_platform_glx != 'no'
if need_api_opengl != 'no' or need_platform_glx != 'no'
gl_dep = dependency('GL', required : false)
if not gl_dep.found()
# if host_machine.system() == 'windows'