From 5db4414d3924deacd8f60bb5fea061e421719e7f Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Tue, 30 Jan 2024 14:39:38 +0100 Subject: [PATCH] Fixed bug in VmaBlockMetadata_Linear::PrintDetailedMap Fixes #405 - thanks @marrodriguez-EA --- 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 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;