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");