commit | a4dbfffa1148621e02d7c31f2f3b7411bccd6a22 | [log] [tgz] |
---|---|---|
author | Cort <1944792+cdwfs@users.noreply.github.com> | Thu Jan 24 21:19:42 2019 -0800 |
committer | Cort <1944792+cdwfs@users.noreply.github.com> | Thu Jan 24 21:19:42 2019 -0800 |
tree | 6ef6e1fade7a25398c74209a284b8df2d6237615 | |
parent | a1953089820dd9681187ba4fffaa0d0affd4623b [diff] |
Fix for "potentially uninitialized variable" warning
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 @@ #endif // #if VMA_DEDICATED_ALLOCATION size_t allocIndex; - VkResult res; + VkResult res = VK_SUCCESS; for(allocIndex = 0; allocIndex < allocationCount; ++allocIndex) { res = AllocateDedicatedMemoryPage(