diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 4eb1305..9001120 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -14525,7 +14525,7 @@ VkResult VmaAllocator_T::AllocateDedicatedMemory( #endif // #if VMA_DEDICATED_ALLOCATION size_t allocIndex; - VkResult res; + VkResult res = VK_SUCCESS; for(allocIndex = 0; allocIndex < allocationCount; ++allocIndex) { res = AllocateDedicatedMemoryPage(