Fixed initialization order in class VmaDefragmentationAlgorithm_Generic constructor. #57 Thanks @manaskulkarni786 !

This commit is contained in:
Adam Sawicki 2019-03-11 10:07:28 +01:00
parent 6c8b7a2c3e
commit 3fd40ede96

View File

@ -12609,8 +12609,8 @@ VmaDefragmentationAlgorithm_Generic::VmaDefragmentationAlgorithm_Generic(
uint32_t currentFrameIndex, uint32_t currentFrameIndex,
bool overlappingMoveSupported) : bool overlappingMoveSupported) :
VmaDefragmentationAlgorithm(hAllocator, pBlockVector, currentFrameIndex), VmaDefragmentationAlgorithm(hAllocator, pBlockVector, currentFrameIndex),
m_AllAllocations(false),
m_AllocationCount(0), m_AllocationCount(0),
m_AllAllocations(false),
m_BytesMoved(0), m_BytesMoved(0),
m_AllocationsMoved(0), m_AllocationsMoved(0),
m_Blocks(VmaStlAllocator<BlockInfo*>(hAllocator->GetAllocationCallbacks())) m_Blocks(VmaStlAllocator<BlockInfo*>(hAllocator->GetAllocationCallbacks()))