Skip to content

Commit 05af0b7

Browse files
SSR: fixed typo when clearing depth mask
1 parent eedf8ae commit 05af0b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostProcess/ScreenSpaceReflection/src/ScreenSpaceReflection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ void ScreenSpaceReflection::ComputeStencilMaskAndExtractRoughness(const RenderAt
875875

876876
RenderAttribs.pDeviceContext->SetRenderTargets(_countof(pRTVs), pRTVs, pDSV, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
877877
// Clear depth to 0.0. Pixels that are not discarded write 1.0.
878-
RenderAttribs.pDeviceContext->ClearDepthStencil(pDSV, CLEAR_DEPTH_FLAG_NONE, 0.0, 0, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
878+
RenderAttribs.pDeviceContext->ClearDepthStencil(pDSV, CLEAR_DEPTH_FLAG, 0.0, 0, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
879879
RenderAttribs.pDeviceContext->SetPipelineState(RenderTech.PSO);
880880
RenderAttribs.pDeviceContext->CommitShaderResources(RenderTech.SRB, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
881881
RenderAttribs.pDeviceContext->Draw({3, DRAW_FLAG_VERIFY_ALL, 1});

0 commit comments

Comments
 (0)