From a48591143a1a4d08d6329c172cfd0a36e2d5406f Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 23 Jun 2022 18:39:30 +0100 Subject: [PATCH] Load stencil state from stencil attachment correctly --- renderdoc/driver/vulkan/vk_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/vulkan/vk_state.cpp b/renderdoc/driver/vulkan/vk_state.cpp index a4fc561cc..d69f9ce1c 100644 --- a/renderdoc/driver/vulkan/vk_state.cpp +++ b/renderdoc/driver/vulkan/vk_state.cpp @@ -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;