mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
vk: Silence maybe-uninitialized warnings
This commit is contained in:
parent
b5faa8f83c
commit
4b2562d02a
1 changed files with 2 additions and 2 deletions
|
@ -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 = {};
|
||||
|
|
Loading…
Add table
Reference in a new issue