From 401c6617dc97e3cca8b147f621754bc98bddfc44 Mon Sep 17 00:00:00 2001 From: Dan Hawson Date: Mon, 4 Sep 2023 18:13:28 +0100 Subject: [PATCH] Fix typo in front/back face stencil mask check --- renderdoc/driver/d3d12/d3d12_common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/d3d12/d3d12_common.cpp b/renderdoc/driver/d3d12/d3d12_common.cpp index b9799a152..d7996b208 100644 --- a/renderdoc/driver/d3d12/d3d12_common.cpp +++ b/renderdoc/driver/d3d12/d3d12_common.cpp @@ -1702,8 +1702,8 @@ D3D12_PACKED_PIPELINE_STATE_STREAM_DESC &D3D12_PACKED_PIPELINE_STATE_STREAM_DESC // one to ensure we don't fail when the new one isn't supported if(expanded.DepthStencilState.StencilEnable && (expanded.DepthStencilState.FrontFace.StencilReadMask != - expanded.DepthStencilState.FrontFace.StencilReadMask || - expanded.DepthStencilState.BackFace.StencilWriteMask != + expanded.DepthStencilState.BackFace.StencilReadMask || + expanded.DepthStencilState.FrontFace.StencilWriteMask != expanded.DepthStencilState.BackFace.StencilWriteMask)) { WRITE_VERSIONED_SUBOJBECT(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2,