From b77238c92ccd2ca8a6fa5ffc35c6fd0576a203ff Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Thu, 26 May 2022 11:11:32 +0200 Subject: [PATCH] Refactored VmaBlockVector::SortByFreeSize to fix compilation on XCode 13.4 Fixes #269. Thanks @richard-lunarg ! --- 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 9a639c1..81b03b6 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -12732,7 +12732,7 @@ void VmaBlockVector::IncrementallySortBlocks() void VmaBlockVector::SortByFreeSize() { VMA_SORT(m_Blocks.begin(), m_Blocks.end(), - [](auto* b1, auto* b2) + [](VmaDeviceMemoryBlock* b1, VmaDeviceMemoryBlock* b2) -> bool { return b1->m_pMetadata->GetSumFreeSize() < b2->m_pMetadata->GetSumFreeSize(); });