From 3fd40ede967f51d694f8311bf70b3c17e7380908 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Mon, 11 Mar 2019 10:07:28 +0100 Subject: [PATCH] Fixed initialization order in class VmaDefragmentationAlgorithm_Generic constructor. #57 Thanks @manaskulkarni786 ! --- src/vk_mem_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 9c962eb..a16b321 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -12609,8 +12609,8 @@ VmaDefragmentationAlgorithm_Generic::VmaDefragmentationAlgorithm_Generic( uint32_t currentFrameIndex, bool overlappingMoveSupported) : VmaDefragmentationAlgorithm(hAllocator, pBlockVector, currentFrameIndex), - m_AllAllocations(false), m_AllocationCount(0), + m_AllAllocations(false), m_BytesMoved(0), m_AllocationsMoved(0), m_Blocks(VmaStlAllocator(hAllocator->GetAllocationCallbacks()))