Load stencil state from stencil attachment correctly

This commit is contained in:
baldurk
2022-06-23 18:39:30 +01:00
parent e310f72939
commit a48591143a
+1 -1
View File
@@ -64,7 +64,7 @@ void VulkanRenderState::BeginRenderPassAndApplyState(WrappedVulkan *vk, VkComman
info.pDepthAttachment = &depth;
if(depth.imageLayout == VK_IMAGE_LAYOUT_UNDEFINED)
info.pDepthAttachment = NULL;
VkRenderingAttachmentInfo stencil = dynamicRendering.depth;
VkRenderingAttachmentInfo stencil = dynamicRendering.stencil;
info.pStencilAttachment = &stencil;
if(stencil.imageLayout == VK_IMAGE_LAYOUT_UNDEFINED)
info.pStencilAttachment = NULL;