From a89a26c452697726aa659058ca07c5a4a7b640eb Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Thu, 14 Sep 2017 11:17:20 +0200 Subject: [PATCH] VmaBlockVector::VmaBlockVector: Fixed warning on GCC Linux (thanks @carlosga) --- 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 5678053..24655f1 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -5081,7 +5081,6 @@ VmaBlockVector::VmaBlockVector( VkDeviceSize bufferImageGranularity, uint32_t frameInUseCount, bool isCustomPool) : - m_Blocks(VmaStlAllocator(hAllocator->GetAllocationCallbacks())), m_hAllocator(hAllocator), m_MemoryTypeIndex(memoryTypeIndex), m_BlockVectorType(blockVectorType), @@ -5091,6 +5090,7 @@ VmaBlockVector::VmaBlockVector( m_BufferImageGranularity(bufferImageGranularity), m_FrameInUseCount(frameInUseCount), m_IsCustomPool(isCustomPool), + m_Blocks(VmaStlAllocator(hAllocator->GetAllocationCallbacks())), m_HasEmptyBlock(false), m_pDefragmentator(VMA_NULL) {