From d00c9b6ff82cc58d64123755a0314b3fa9885eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Petter=20Sk=C3=A5lerud?= Date: Thu, 19 Mar 2020 19:38:52 +0100 Subject: [PATCH] Fixed bug where pUserData was not being assigned during initialization. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nils Petter Skålerud --- src/vk_mem_alloc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index fd85476..44c75bd 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -15060,6 +15060,7 @@ VmaAllocator_T::VmaAllocator_T(const VmaAllocatorCreateInfo* pCreateInfo) : if(pCreateInfo->pDeviceMemoryCallbacks != VMA_NULL) { + m_DeviceMemoryCallbacks.pUserData = pCreateInfo->pDeviceMemoryCallbacks->pUserData; m_DeviceMemoryCallbacks.pfnAllocate = pCreateInfo->pDeviceMemoryCallbacks->pfnAllocate; m_DeviceMemoryCallbacks.pfnFree = pCreateInfo->pDeviceMemoryCallbacks->pfnFree; }