vk: Silence maybe-uninitialized warnings

This commit is contained in:
kd-11 2021-08-13 21:17:29 +03:00 committed by kd-11
parent b5faa8f83c
commit 4b2562d02a

View file

@ -181,7 +181,7 @@ namespace vk
VmaAllocation vma_alloc;
VkMemoryRequirements mem_req = {};
VmaAllocationCreateInfo create_info = {};
VkResult error_code;
VkResult error_code = VK_ERROR_UNKNOWN;
auto do_vma_alloc = [&]() -> std::tuple<VkResult, u32>
{
@ -309,7 +309,7 @@ namespace vk
mem_allocator_vk::mem_handle_t mem_allocator_vk::alloc(u64 block_sz, u64 /*alignment*/, const memory_type_info& memory_type, vmm_allocation_pool pool, bool throw_on_fail)
{
VkResult error_code;
VkResult error_code = VK_ERROR_UNKNOWN;
VkDeviceMemory memory;
VkMemoryAllocateInfo info = {};