Fix wrong index being printed in debug message

This commit is contained in:
baldurk
2020-04-13 13:55:48 +01:00
parent 36f16b9998
commit a4ccf9ab3c
+1 -1
View File
@@ -252,7 +252,7 @@ MemoryAllocation WrappedVulkan::AllocateMemoryForResource(bool buffer, VkMemoryR
{
if(mrq.memoryTypeBits > (1U << m))
{
RDCDEBUG("Avoiding memory type %u due to small heap size (%llu)", i,
RDCDEBUG("Avoiding memory type %u due to small heap size (%llu)", m,
m_PhysicalDeviceData.memProps.memoryHeaps[heap].size);
mrq.memoryTypeBits &= ~(1U << m);
}