Skip to content

Commit

Permalink
Refactored VmaBlockVector::SortByFreeSize to fix compilation on XCode…
Browse files Browse the repository at this point in the history
… 13.4

Fixes #269. Thanks @richard-lunarg !
  • Loading branch information
adam-sawicki-a committed May 26, 2022
1 parent 0bbde17 commit b77238c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/vk_mem_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit b77238c

Please sign in to comment.