Commit 4d76061e by Geoff Lang

Make sure D3DRS_TWOSIDEDSTENCILMODE is enabled if the stencil test is.

This state-setting code was not ported when adding the dirty bits for D3D9 depth stencil state in https://chromium-review.googlesource.com/#/c/316449. BUG=597107 Change-Id: I1c7d3f6188d69c4891a5744f16bc8b8852d2bb92 Reviewed-on: https://chromium-review.googlesource.com/343541Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 706cdd81
......@@ -730,6 +730,7 @@ void StateManager9::setStencilTestEnabled(bool stencilTestEnabled)
if (stencilTestEnabled && mCurStencilSize > 0)
{
mRenderer9->getDevice()->SetRenderState(D3DRS_STENCILENABLE, TRUE);
mRenderer9->getDevice()->SetRenderState(D3DRS_TWOSIDEDSTENCILMODE, TRUE);
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment