From 434ac86781d069944b84e5a37146e1bfa90818bc Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Thu, 22 Nov 2018 16:20:49 +0100 Subject: [PATCH] Minor improvement in vmaDefragmentationBegin. --- src/vk_mem_alloc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 5507b8b..de01504 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -15213,6 +15213,8 @@ VkResult vmaDefragmentationBegin( VmaDefragmentationContext *pContext) { VMA_ASSERT(allocator && pInfo && pContext); + VMA_ASSERT(pInfo->allocationCount == 0 || pInfo->pAllocations != VMA_NULL); + VMA_ASSERT(pInfo->poolCount == 0 || pInfo->pPools != VMA_NULL); VMA_DEBUG_LOG("vmaDefragmentationBegin");