diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 331c5e4..5b3be72 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -7581,7 +7581,7 @@ void VmaBlockMetadata_Linear::PrintDetailedMap(class VmaJsonWriter& json) const // We are at the end. else { - if (lastOffset < size) + if (lastOffset < freeSpace1stTo2ndEnd) { // There is free space from lastOffset to freeSpace1stTo2ndEnd. ++unusedRangeCount;