meson: remove dependency from libmpv to plain-gl

The libmpv feature should not have any impact on the built core code.
Otherwise a mpv executable compiled in a build together with libmpv has
different features than one from a build without.

The gl feature doesn't hurt, so always enable it.
This commit is contained in:
Thomas Weißschuh 2023-01-19 03:14:23 +00:00 committed by Dudemanguy
parent 2056bf1b4e
commit 491aaacca6
1 changed files with 2 additions and 2 deletions

View File

@ -1194,8 +1194,8 @@ if features['egl-x11']
endif
plain_gl = get_option('plain-gl').require(
get_option('libmpv') and gl_allowed,
error_message: 'libmpv was not enabled!',
gl_allowed,
error_message: 'gl was not enabled!',
)
features += {'plain-gl': plain_gl.allowed()}
if features['plain-gl']