Skip to content

Commit c4227e5

Browse files
Fixes warning: field 'm_Blocks' will be initialized after field 'm_HasEmptyBlock' [-Wreorder] #37 Thanks @TheLavaBlock !
1 parent c7d1b58 commit c4227e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vk_mem_alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9380,8 +9380,8 @@ VmaBlockVector::VmaBlockVector(
93809380
m_IsCustomPool(isCustomPool),
93819381
m_ExplicitBlockSize(explicitBlockSize),
93829382
m_LinearAlgorithm(linearAlgorithm),
9383-
m_Blocks(VmaStlAllocator<VmaDeviceMemoryBlock*>(hAllocator->GetAllocationCallbacks())),
93849383
m_HasEmptyBlock(false),
9384+
m_Blocks(VmaStlAllocator<VmaDeviceMemoryBlock*>(hAllocator->GetAllocationCallbacks())),
93859385
m_pDefragmentator(VMA_NULL),
93869386
m_NextBlockId(0)
93879387
{

0 commit comments

Comments
 (0)