mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-22 23:04:35 +00:00
Fix for "potentially uninitialized variable" warning
This commit is contained in:
parent
a195308982
commit
a4dbfffa11
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user