diff options
Diffstat (limited to 'render/meson.build')
-rw-r--r-- | render/meson.build | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/render/meson.build b/render/meson.build index 2d651887..a1289ede 100644 --- a/render/meson.build +++ b/render/meson.build @@ -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 |