Small fix.

This commit is contained in:
Adam Sawicki 2017-09-26 13:58:44 +02:00
parent f8b70f0542
commit a892d137ae

View File

@ -6401,7 +6401,7 @@ VkResult VmaAllocator_T::AllocateOwnMemory(
{ {
if(m_UnmapPersistentlyMappedMemoryCounter == 0) if(m_UnmapPersistentlyMappedMemoryCounter == 0)
{ {
res = (*this->GetVulkanFunctions().vkMapMemory)( res = (*m_VulkanFunctions.vkMapMemory)(
m_hDevice, m_hDevice,
hMemory, hMemory,
0, 0,
@ -7021,7 +7021,7 @@ void VmaAllocator_T::FreeOwnMemory(VmaAllocation allocation)
if(allocation->GetMappedData() != VMA_NULL) if(allocation->GetMappedData() != VMA_NULL)
{ {
(*this->GetVulkanFunctions().vkUnmapMemory)(m_hDevice, hMemory); (*m_VulkanFunctions.vkUnmapMemory)(m_hDevice, hMemory);
} }
FreeVulkanMemory(memTypeIndex, allocation->GetSize(), hMemory); FreeVulkanMemory(memTypeIndex, allocation->GetSize(), hMemory);