mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +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
|
#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