Skip to content

Commit 5c54914

Browse files
committed
CBlender_Compile: Don't support double-sided stencils.
1 parent b168e55 commit 5c54914

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Layers/xrRenderDX10/Blender_Recorder_R3.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ void CBlender_Compile::r_Stencil(BOOL Enable, u32 Func, u32 Mask, u32 WriteMask,
1818
RS.SetRS( D3DRS_STENCILFAIL, Fail);
1919
RS.SetRS( D3DRS_STENCILPASS, Pass);
2020
RS.SetRS( D3DRS_STENCILZFAIL, ZFail);
21+
#ifndef USE_OGL
2122
// Since we never really support different options for
2223
// CW/CCW stencil use it to mimic DX9 behaviour for
2324
// single-sided stencil
2425
RS.SetRS( D3DRS_CCW_STENCILFUNC, Func);
2526
RS.SetRS( D3DRS_CCW_STENCILFAIL, Fail);
2627
RS.SetRS( D3DRS_CCW_STENCILPASS, Pass);
2728
RS.SetRS( D3DRS_CCW_STENCILZFAIL, ZFail);
29+
#endif // !USE_OGL
2830
}
2931

3032
void CBlender_Compile::r_StencilRef(u32 Ref)

0 commit comments

Comments
 (0)