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:
parent
f70d4ec22d
commit
78d8e895df
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user