Fixed bug in VmaAllocator_T::Defragment.

This commit is contained in:
Adam Sawicki 2018-10-09 13:26:33 +02:00
parent b8d34d5e6a
commit ad0989bfb4

View file

@ -12516,7 +12516,7 @@ VkResult VmaAllocator_T::Defragment(
{ {
if(pAllocationsChanged != VMA_NULL) if(pAllocationsChanged != VMA_NULL)
{ {
memset(pAllocationsChanged, 0, sizeof(*pAllocationsChanged)); memset(pAllocationsChanged, 0, allocationCount * sizeof(VkBool32));
} }
if(pDefragmentationStats != VMA_NULL) if(pDefragmentationStats != VMA_NULL)
{ {