mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 04:10:06 +00:00
Fixed loop termination when ending defragment passes
This commit is contained in:
parent
46776a4c37
commit
44a5aea4ef
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user