mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +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)
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user