Skip to content

Commit

Permalink
CBlender_Compile: Don't support double-sided stencils.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Nov 29, 2015
1 parent b168e55 commit 5c54914
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Layers/xrRenderDX10/Blender_Recorder_R3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ void CBlender_Compile::r_Stencil(BOOL Enable, u32 Func, u32 Mask, u32 WriteMask,
RS.SetRS( D3DRS_STENCILFAIL, Fail);
RS.SetRS( D3DRS_STENCILPASS, Pass);
RS.SetRS( D3DRS_STENCILZFAIL, ZFail);
#ifndef USE_OGL
// Since we never really support different options for
// CW/CCW stencil use it to mimic DX9 behaviour for
// single-sided stencil
RS.SetRS( D3DRS_CCW_STENCILFUNC, Func);
RS.SetRS( D3DRS_CCW_STENCILFAIL, Fail);
RS.SetRS( D3DRS_CCW_STENCILPASS, Pass);
RS.SetRS( D3DRS_CCW_STENCILZFAIL, ZFail);
#endif // !USE_OGL
}

void CBlender_Compile::r_StencilRef(u32 Ref)
Expand Down

0 comments on commit 5c54914

Please sign in to comment.