From 59734bbc637bb9a7cf637cb8351911ac0e7c71f3 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Mon, 12 Jun 2023 13:30:02 +0200 Subject: [PATCH] A fix in VmaBlockMetadata_TLSF::CreateAllocationRequest Code by @medranSolus. See #343 --- include/vk_mem_alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 823cef8..a094898 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -10295,8 +10295,8 @@ bool VmaBlockMetadata_TLSF::CreateAllocationRequest( else sizeForNextList += smallSizeStep; - uint32_t nextListIndex = 0; - uint32_t prevListIndex = 0; + uint32_t nextListIndex = m_ListsCount; + uint32_t prevListIndex = m_ListsCount; Block* nextListBlock = VMA_NULL; Block* prevListBlock = VMA_NULL;