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
parent b85fa6f2dd
commit 5e2f9a9690

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'