1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00

meson: check vulkan version

The symbol "vkGetPhysicalDeviceProperties2" was recently added
after refactoring context.c.
This commit is contained in:
syphyr 2023-09-09 20:54:40 +02:00 committed by sfan5
parent 97dc202787
commit 662650bde3

View File

@ -1263,7 +1263,7 @@ vulkan_opt = get_option('vulkan').require(
libplacebo.get_variable('pl_has_vulkan', default_value: '0') == '1',
error_message: 'libplacebo could not be found!',
)
vulkan = dependency('vulkan', required: vulkan_opt)
vulkan = dependency('vulkan', version: '>= 1.1.70', required: vulkan_opt)
features += {'vulkan': vulkan.found()}
if features['vulkan']
dependencies += vulkan