Vulkan: Initialize RenderPassCreateInfo flags variable to 0.

This commit is contained in:
Dr. Chat 2017-01-28 11:41:22 -06:00
parent 16fc719b14
commit ba74667190
1 changed files with 2 additions and 0 deletions

View File

@ -436,8 +436,10 @@ CachedRenderPass::CachedRenderPass(VkDevice device,
// Create the render pass. // Create the render pass.
VkRenderPassCreateInfo render_pass_info; 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.sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO;
render_pass_info.pNext = nullptr; render_pass_info.pNext = nullptr;
render_pass_info.flags = 0;
render_pass_info.attachmentCount = 5; render_pass_info.attachmentCount = 5;
render_pass_info.pAttachments = attachments; render_pass_info.pAttachments = attachments;
render_pass_info.subpassCount = 1; render_pass_info.subpassCount = 1;