mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-22 23:04:35 +00:00
commit
228a1b68ae
@ -5879,9 +5879,14 @@ private:
|
|||||||
void PostMinorCounter()
|
void PostMinorCounter()
|
||||||
{
|
{
|
||||||
if(m_MinorCounter < m_MajorCounter)
|
if(m_MinorCounter < m_MajorCounter)
|
||||||
|
{
|
||||||
++m_MinorCounter;
|
++m_MinorCounter;
|
||||||
|
}
|
||||||
else if(m_MajorCounter > 0)
|
else if(m_MajorCounter > 0)
|
||||||
--m_MajorCounter, --m_MinorCounter;
|
{
|
||||||
|
--m_MajorCounter;
|
||||||
|
--m_MinorCounter;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -13841,6 +13846,9 @@ bool VmaDefragmentationContext_T::ComputeDefragmentation_Extensive(VmaBlockVecto
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case StateExtensive::Operation::Cleanup:
|
||||||
|
// Cleanup is handled below so that other operations may reuse the cleanup code. This case is here to prevent the unhandled enum value warning (C4062).
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vectorState.operation == StateExtensive::Operation::Cleanup)
|
if (vectorState.operation == StateExtensive::Operation::Cleanup)
|
||||||
|
Loading…
Reference in New Issue
Block a user