Skip to content

Commit 5f94eae

Browse files
Fix bug in VmaAllocator_T::AllocateVulkanMemory for case when HeapSizeLimit is used
Closes #89 - thanks @JustSid !
1 parent 023976a commit 5f94eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vk_mem_alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15857,7 +15857,7 @@ VkResult VmaAllocator_T::AllocateVulkanMemory(const VkMemoryAllocateInfo* pAlloc
1585715857
{
1585815858
return VK_ERROR_OUT_OF_DEVICE_MEMORY;
1585915859
}
15860-
if(m_Budget.m_BlockBytes->compare_exchange_strong(blockBytes, blockBytesAfterAllocation))
15860+
if(m_Budget.m_BlockBytes[heapIndex].compare_exchange_strong(blockBytes, blockBytesAfterAllocation))
1586115861
{
1586215862
break;
1586315863
}

0 commit comments

Comments
 (0)