Skip to content

Commit b77238c

Browse files
Refactored VmaBlockVector::SortByFreeSize to fix compilation on XCode 13.4
Fixes #269. Thanks @richard-lunarg !
1 parent 0bbde17 commit b77238c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/vk_mem_alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12732,7 +12732,7 @@ void VmaBlockVector::IncrementallySortBlocks()
1273212732
void VmaBlockVector::SortByFreeSize()
1273312733
{
1273412734
VMA_SORT(m_Blocks.begin(), m_Blocks.end(),
12735-
[](auto* b1, auto* b2)
12735+
[](VmaDeviceMemoryBlock* b1, VmaDeviceMemoryBlock* b2) -> bool
1273612736
{
1273712737
return b1->m_pMetadata->GetSumFreeSize() < b2->m_pMetadata->GetSumFreeSize();
1273812738
});

0 commit comments

Comments
 (0)