From 3e6b3847e32b0134e8a0e4dea8217ef0ac5864aa Mon Sep 17 00:00:00 2001 From: Vladislav Belov Date: Sun, 19 Feb 2023 11:31:42 +0300 Subject: [PATCH] Fixes uninitialized vkGetPhysicalDeviceMemoryProperties2KHR during ImportVulkanFunctions_Custom. --- include/vk_mem_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index a258656..fa7bd3f 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -14257,7 +14257,7 @@ void VmaAllocator_T::ImportVulkanFunctions_Custom(const VmaVulkanFunctions* pVul VMA_COPY_IF_NOT_NULL(vkBindImageMemory2KHR); #endif -#if VMA_MEMORY_BUDGET +#if VMA_MEMORY_BUDGET || VMA_VULKAN_VERSION >= 1001000 VMA_COPY_IF_NOT_NULL(vkGetPhysicalDeviceMemoryProperties2KHR); #endif