diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 059bbb9..6db215d 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -12656,6 +12656,10 @@ void VmaBlockVector::FreeEmptyBlocks(VmaDefragmentationStats* pDefragmentationSt pBlock->Destroy(m_hAllocator); vma_delete(m_hAllocator, pBlock); } + else + { + break; + } } } UpdateHasEmptyBlock();