From 94b77de5ed06213165e5c45b265aaa51b53506a4 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 18 Oct 2021 09:50:33 +0300 Subject: [PATCH] - fixed Vulkan memory allocator initialization --- src/common/rendering/vulkan/system/vk_device.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/rendering/vulkan/system/vk_device.cpp b/src/common/rendering/vulkan/system/vk_device.cpp index ae2b9900f5c..f6ce072afae 100644 --- a/src/common/rendering/vulkan/system/vk_device.cpp +++ b/src/common/rendering/vulkan/system/vk_device.cpp @@ -220,6 +220,7 @@ void VulkanDevice::CreateAllocator() allocinfo.flags = VMA_ALLOCATOR_CREATE_KHR_DEDICATED_ALLOCATION_BIT; allocinfo.physicalDevice = PhysicalDevice.Device; allocinfo.device = device; + allocinfo.instance = instance; allocinfo.preferredLargeHeapBlockSize = 64 * 1024 * 1024; if (vmaCreateAllocator(&allocinfo, &allocator) != VK_SUCCESS) VulkanError("Unable to create allocator");