Skip to content

Commit 59734bb

Browse files
A fix in VmaBlockMetadata_TLSF::CreateAllocationRequest
Code by @medranSolus. See #343
1 parent 0e89587 commit 59734bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/vk_mem_alloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10295,8 +10295,8 @@ bool VmaBlockMetadata_TLSF::CreateAllocationRequest(
1029510295
else
1029610296
sizeForNextList += smallSizeStep;
1029710297

10298-
uint32_t nextListIndex = 0;
10299-
uint32_t prevListIndex = 0;
10298+
uint32_t nextListIndex = m_ListsCount;
10299+
uint32_t prevListIndex = m_ListsCount;
1030010300
Block* nextListBlock = VMA_NULL;
1030110301
Block* prevListBlock = VMA_NULL;
1030210302

0 commit comments

Comments
 (0)