Fixed bug in VmaDefragmentationContext_T::ComputeDefragmentation_Extensive

Fixes #328. Code by @medranSolus.
This commit is contained in:
Adam Sawicki 2023-04-07 10:58:24 +02:00
parent 7e63caa879
commit ff37e92786

View File

@ -13732,7 +13732,7 @@ bool VmaDefragmentationContext_T::ComputeDefragmentation_Extensive(VmaBlockVecto
{ {
// Full clear performed already // Full clear performed already
if (prevMoveCount != m_Moves.size() && freeMetadata->GetNextAllocation(handle) == VK_NULL_HANDLE) if (prevMoveCount != m_Moves.size() && freeMetadata->GetNextAllocation(handle) == VK_NULL_HANDLE)
reinterpret_cast<size_t*>(m_AlgorithmState)[index] = last; vectorState.firstFreeBlock = last;
return true; return true;
} }
} }