From cba6a2ba1037400d2ed1b38b7a3f3b61f23129ab Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Sat, 30 Oct 2021 23:36:24 +0200 Subject: [PATCH] Fix for compilation on Linux --- include/vk_mem_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index fdb8523..bd22326 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -16741,7 +16741,7 @@ VkResult VmaVirtualBlock_T::Allocate(const VmaVirtualAllocationCreateInfo& creat 0, // frameInUseCount - unimportant 1, // bufferImageGranularity createInfo.size, // allocSize - VMA_MAX(createInfo.alignment, 1llu), // allocAlignment + VMA_MAX(createInfo.alignment, (VkDeviceSize)1), // allocAlignment (createInfo.flags & VMA_VIRTUAL_ALLOCATION_CREATE_UPPER_ADDRESS_BIT) != 0, // upperAddress VMA_SUBALLOCATION_TYPE_UNKNOWN, // allocType - unimportant false, // canMakeOthersLost