From 204fcdc0a377c06037936d3f42053e4edfe83576 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Wed, 5 Jan 2022 18:49:32 +0100 Subject: [PATCH] Minor fixes Closes #217 --- include/vk_mem_alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 1e90584..7603981 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -14321,7 +14321,7 @@ VmaPool_T::VmaPool_T( (createInfo.flags& VMA_POOL_CREATE_IGNORE_BUFFER_IMAGE_GRANULARITY_BIT) != 0 ? 1 : hAllocator->GetBufferImageGranularity(), createInfo.frameInUseCount, createInfo.blockSize != 0, // explicitBlockSize - createInfo.flags& VMA_POOL_CREATE_ALGORITHM_MASK, // algorithm + createInfo.flags & VMA_POOL_CREATE_ALGORITHM_MASK, // algorithm createInfo.priority, VMA_MAX(hAllocator->GetMemoryTypeMinAlignment(createInfo.memoryTypeIndex), createInfo.minAllocationAlignment), createInfo.pMemoryAllocateNext), @@ -15106,7 +15106,7 @@ VmaAllocator_T::VmaAllocator_T(const VmaAllocatorCreateInfo* pCreateInfo) : GetBufferImageGranularity(), pCreateInfo->frameInUseCount, false, // explicitBlockSize - false, // linearAlgorithm + 0, // algorithm 0.5f, // priority (0.5 is the default per Vulkan spec) GetMemoryTypeMinAlignment(memTypeIndex), // minAllocationAlignment VMA_NULL); // // pMemoryAllocateNext