Merge pull request #53 from cdwfs/uninitialized-vkresult

Fix for "potentially uninitialized variable" warning
This commit is contained in:
Adam Sawicki 2019-01-29 12:10:23 +01:00 committed by GitHub
commit c9bf1003ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14525,7 +14525,7 @@ VkResult VmaAllocator_T::AllocateDedicatedMemory(
#endif // #if VMA_DEDICATED_ALLOCATION #endif // #if VMA_DEDICATED_ALLOCATION
size_t allocIndex; size_t allocIndex;
VkResult res; VkResult res = VK_SUCCESS;
for(allocIndex = 0; allocIndex < allocationCount; ++allocIndex) for(allocIndex = 0; allocIndex < allocationCount; ++allocIndex)
{ {
res = AllocateDedicatedMemoryPage( res = AllocateDedicatedMemoryPage(