aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/meson.build11
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