Fixed bug in VmaAllocator_T::Defragment.
This commit is contained in:
parent
b8d34d5e6a
commit
ad0989bfb4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue