Fixed bug where pUserData was not being assigned during initialization.

Signed-off-by: Nils Petter Skålerud <np_skalerud@hotmail.com>
This commit is contained in:
Nils Petter Skålerud 2020-03-19 19:38:52 +01:00
parent eebf47cd1c
commit d00c9b6ff8

View File

@ -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;
}