mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
render: completely disable gles2 if requested but libEGL is found
For `required` to disable search the value needs to be of `feature` type. Checking `gles2` via `in` keyword returns a `bool` but `required: false` makes the dependency optional instead of disabled.
This commit is contained in:
parent
8bc1086cac
commit
760e166578
1 changed files with 5 additions and 6 deletions
|
|
@ -14,13 +14,12 @@ wlr_files += files(
|
|||
'wlr_texture.c',
|
||||
)
|
||||
|
||||
egl = dependency('egl', required: 'gles2' in renderers)
|
||||
if egl.found()
|
||||
wlr_deps += egl
|
||||
wlr_files += files('egl.c')
|
||||
endif
|
||||
|
||||
if 'gles2' in renderers or 'auto' in renderers
|
||||
egl = dependency('egl', required: 'gles2' in renderers)
|
||||
if egl.found()
|
||||
wlr_deps += egl
|
||||
wlr_files += files('egl.c')
|
||||
endif
|
||||
subdir('gles2')
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue