mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-22 15:04:34 +00:00
Merge pull request #53 from cdwfs/uninitialized-vkresult
Fix for "potentially uninitialized variable" warning
This commit is contained in:
commit
c9bf1003ac
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user