meson: fix incorrect egl_drm operator in build

Back when the meson build was still in the PR state, this particular
variable was a dictionary. Later, it was refactored to simply be a
feature object instead. All uses of egl_drm['use'] should have been
replaced with egl_drm.allowed() but this particular line was missed
(that's what I get for not just doing find/replace). The conditional in
this line is usually satisified before egl_drm ever needs to be checked
which was why no one noticed until now. Fixes #9631.
This commit is contained in:
Dudemanguy committed 2021-12-21 15:30:12 -06:00
1 parent 87286fe820
commit d92cf77be5
1 file changed
+1 -1
+1 -1
View File
@@ -1427,7 +1427,7 @@ vaapi = {
'deps': dependency('libva', version: '>= 1.1.0', required: get_option('vaapi')),
}
vaapi += {'use': vaapi['deps'].found() and libdl.found() and
(x11['use'] or wayland['use'] or egl_drm['use'])}
(x11['use'] or wayland['use'] or egl_drm.allowed())}
if vaapi['use']
dependencies += vaapi['deps']
features += vaapi['name']