multisampling, subpasses, textoverlay: Fix renderpass initial layout.

Fixes #418
This commit is contained in:
Igor Ostrowski 2018-02-01 12:40:08 +01:00
parent 1c352e106e
commit 642a665144
3 changed files with 3 additions and 1 deletions

View file

@ -343,6 +343,7 @@ public:
// Create custom overlay render pass
colorReference.attachment = 1;
attachments[1].loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
attachments[1].initialLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR;
subpass.pResolveAttachments = 0;
subpass.pDepthStencilAttachment = 0;