Skip to content

Commit 5db4414

Browse files
Fixed bug in VmaBlockMetadata_Linear::PrintDetailedMap
Fixes #405 - thanks @marrodriguez-EA
1 parent 7924e27 commit 5db4414

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
@@ -7581,7 +7581,7 @@ void VmaBlockMetadata_Linear::PrintDetailedMap(class VmaJsonWriter& json) const
75817581
// We are at the end.
75827582
else
75837583
{
7584-
if (lastOffset < size)
7584+
if (lastOffset < freeSpace1stTo2ndEnd)
75857585
{
75867586
// There is free space from lastOffset to freeSpace1stTo2ndEnd.
75877587
++unusedRangeCount;

0 commit comments

Comments
 (0)