Patch up renderpass initial/final layout if PRESENT_SRC. Refs #209

This commit is contained in:
baldurk
2016-03-09 20:11:31 +01:00
parent 8832d43215
commit 4beb59aef9
@@ -546,6 +546,10 @@ bool WrappedVulkan::Serialise_vkCreateRenderPass(
{
att[i].storeOp = VK_ATTACHMENT_STORE_OP_STORE;
att[i].stencilStoreOp = VK_ATTACHMENT_STORE_OP_STORE;
// renderpass can't start or end in presentable layout on replay
ReplacePresentableImageLayout(att[i].initialLayout);
ReplacePresentableImageLayout(att[i].finalLayout);
}
VkResult ret = ObjDisp(device)->CreateRenderPass(Unwrap(device), &info, NULL, &rp);