From ba74667190a616e80b52123eed1d5d39761ab0e0 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sat, 28 Jan 2017 11:41:22 -0600 Subject: [PATCH] Vulkan: Initialize RenderPassCreateInfo flags variable to 0. --- src/xenia/gpu/vulkan/render_cache.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xenia/gpu/vulkan/render_cache.cc b/src/xenia/gpu/vulkan/render_cache.cc index 43db3c47c..659aadb1a 100644 --- a/src/xenia/gpu/vulkan/render_cache.cc +++ b/src/xenia/gpu/vulkan/render_cache.cc @@ -436,8 +436,10 @@ CachedRenderPass::CachedRenderPass(VkDevice device, // Create the render pass. VkRenderPassCreateInfo render_pass_info; + std::memset(&render_pass_info, 0, sizeof(render_pass_info)); render_pass_info.sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO; render_pass_info.pNext = nullptr; + render_pass_info.flags = 0; render_pass_info.attachmentCount = 5; render_pass_info.pAttachments = attachments; render_pass_info.subpassCount = 1;