Skip to content

Commit

Permalink
Fix incorrect depth stencil initialization in dx10StateUtils::Validat…
Browse files Browse the repository at this point in the history
…eState.
  • Loading branch information
Pavel Kovalenko committed Sep 26, 2014
1 parent 049dfca commit 2d152f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Layers/xrRenderDX10/dx10StateUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ void ValidateState(D3D_DEPTH_STENCIL_DESC &desc)

if (!desc.DepthEnable)
{
desc.DepthFunc = D3D_COMPARISON_NEVER;
desc.DepthWriteMask = D3D_DEPTH_WRITE_MASK_ALL;
desc.DepthFunc = D3D_COMPARISON_LESS;
}

if (!desc.StencilEnable)
Expand Down

0 comments on commit 2d152f8

Please sign in to comment.