Skip to content

Commit 434ac86

Browse files
Minor improvement in vmaDefragmentationBegin.
1 parent 52076eb commit 434ac86

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/vk_mem_alloc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15213,6 +15213,8 @@ VkResult vmaDefragmentationBegin(
1521315213
VmaDefragmentationContext *pContext)
1521415214
{
1521515215
VMA_ASSERT(allocator && pInfo && pContext);
15216+
VMA_ASSERT(pInfo->allocationCount == 0 || pInfo->pAllocations != VMA_NULL);
15217+
VMA_ASSERT(pInfo->poolCount == 0 || pInfo->pPools != VMA_NULL);
1521615218

1521715219
VMA_DEBUG_LOG("vmaDefragmentationBegin");
1521815220

0 commit comments

Comments
 (0)