Fix for "potentially uninitialized variable" warning

This commit is contained in:
Cort 2019-01-24 21:19:42 -08:00
parent a195308982
commit a4dbfffa11

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(