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
1 changed files with 1 additions and 1 deletions

View File

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