mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-10 02:31:48 +00:00
Small fix.
This commit is contained in:
parent
f8b70f0542
commit
a892d137ae
@ -6401,7 +6401,7 @@ VkResult VmaAllocator_T::AllocateOwnMemory(
|
||||
{
|
||||
if(m_UnmapPersistentlyMappedMemoryCounter == 0)
|
||||
{
|
||||
res = (*this->GetVulkanFunctions().vkMapMemory)(
|
||||
res = (*m_VulkanFunctions.vkMapMemory)(
|
||||
m_hDevice,
|
||||
hMemory,
|
||||
0,
|
||||
@ -7021,7 +7021,7 @@ void VmaAllocator_T::FreeOwnMemory(VmaAllocation allocation)
|
||||
|
||||
if(allocation->GetMappedData() != VMA_NULL)
|
||||
{
|
||||
(*this->GetVulkanFunctions().vkUnmapMemory)(m_hDevice, hMemory);
|
||||
(*m_VulkanFunctions.vkUnmapMemory)(m_hDevice, hMemory);
|
||||
}
|
||||
|
||||
FreeVulkanMemory(memTypeIndex, allocation->GetSize(), hMemory);
|
||||
|
Loading…
Reference in New Issue
Block a user