Skip to content

Commit 2d152f8

Browse files
author
Pavel Kovalenko
committed
Fix incorrect depth stencil initialization in dx10StateUtils::ValidateState.
1 parent 049dfca commit 2d152f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Layers/xrRenderDX10/dx10StateUtils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,8 @@ void ValidateState(D3D_DEPTH_STENCIL_DESC &desc)
484484

485485
if (!desc.DepthEnable)
486486
{
487-
desc.DepthFunc = D3D_COMPARISON_NEVER;
487+
desc.DepthWriteMask = D3D_DEPTH_WRITE_MASK_ALL;
488+
desc.DepthFunc = D3D_COMPARISON_LESS;
488489
}
489490

490491
if (!desc.StencilEnable)

0 commit comments

Comments
 (0)