Skip to content

Commit ad0989b

Browse files
Fixed bug in VmaAllocator_T::Defragment.
1 parent b8d34d5 commit ad0989b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vk_mem_alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12516,7 +12516,7 @@ VkResult VmaAllocator_T::Defragment(
1251612516
{
1251712517
if(pAllocationsChanged != VMA_NULL)
1251812518
{
12519-
memset(pAllocationsChanged, 0, sizeof(*pAllocationsChanged));
12519+
memset(pAllocationsChanged, 0, allocationCount * sizeof(VkBool32));
1252012520
}
1252112521
if(pDefragmentationStats != VMA_NULL)
1252212522
{

0 commit comments

Comments
 (0)