Fixed loop termination when ending defragment passes

This commit is contained in:
Sidney Just 2022-03-03 17:04:20 -08:00
parent 46776a4c37
commit 44a5aea4ef

View File

@ -13276,7 +13276,7 @@ VkResult VmaDefragmentationContext_T::DefragmentPassEnd(VmaDefragmentationPassMo
for (const FragmentedBlock& block : immovableBlocks)
{
VmaBlockVector* vector = m_pBlockVectors[block.data];
for (size_t i = m_ImmovableBlockCount; vector->GetBlockCount(); ++i)
for (size_t i = m_ImmovableBlockCount; i < vector->GetBlockCount(); ++i)
{
if (vector->GetBlock(i) == block.block)
{