mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +00:00
Fix initialization order in VmaDefragmentationAlgorithm_Generic constructor
See #236
This commit is contained in:
parent
cebd53ce67
commit
e51e4d3b40
@ -13239,11 +13239,11 @@ VmaDefragmentationAlgorithm_Generic::VmaDefragmentationAlgorithm_Generic(
|
|||||||
VmaBlockVector* pBlockVector,
|
VmaBlockVector* pBlockVector,
|
||||||
bool overlappingMoveSupported)
|
bool overlappingMoveSupported)
|
||||||
: VmaDefragmentationAlgorithm(hAllocator, pBlockVector),
|
: VmaDefragmentationAlgorithm(hAllocator, pBlockVector),
|
||||||
|
m_Blocks(VmaStlAllocator<BlockInfo*>(hAllocator->GetAllocationCallbacks())),
|
||||||
m_AllocationCount(0),
|
m_AllocationCount(0),
|
||||||
m_AllAllocations(false),
|
m_AllAllocations(false),
|
||||||
m_BytesMoved(0),
|
m_BytesMoved(0),
|
||||||
m_AllocationsMoved(0),
|
m_AllocationsMoved(0)
|
||||||
m_Blocks(VmaStlAllocator<BlockInfo*>(hAllocator->GetAllocationCallbacks()))
|
|
||||||
{
|
{
|
||||||
// Create block info for each block.
|
// Create block info for each block.
|
||||||
const size_t blockCount = m_pBlockVector->m_Blocks.size();
|
const size_t blockCount = m_pBlockVector->m_Blocks.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user