From 2854266061ed957694b0b5f3d5cc9a51d9058023 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Thu, 2 Dec 2021 16:38:35 +0100 Subject: [PATCH] Fix in TestHeapSizeLimit --- src/Tests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Tests.cpp b/src/Tests.cpp index 1dde2dc..34bbd26 100644 --- a/src/Tests.cpp +++ b/src/Tests.cpp @@ -3144,6 +3144,12 @@ void TestHeapSizeLimit() allocatorCreateInfo.device = g_hDevice; allocatorCreateInfo.instance = g_hVulkanInstance; allocatorCreateInfo.pHeapSizeLimit = heapSizeLimit; +#if VMA_DYNAMIC_VULKAN_FUNCTIONS + VmaVulkanFunctions vulkanFunctions = {}; + vulkanFunctions.vkGetInstanceProcAddr = vkGetInstanceProcAddr; + vulkanFunctions.vkGetDeviceProcAddr = vkGetDeviceProcAddr; + allocatorCreateInfo.pVulkanFunctions = &vulkanFunctions; +#endif VmaAllocator hAllocator; VkResult res = vmaCreateAllocator(&allocatorCreateInfo, &hAllocator);