mirror of https://github.com/mpv-player/mpv
meson: check vulkan version
The symbol "vkGetPhysicalDeviceProperties2" was recently added after refactoring context.c.
This commit is contained in:
parent
97dc202787
commit
662650bde3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue