Stefan Dösinger : wined3d: Enable the stencil test if two sided stencil is used.
Alexandre Julliard
julliard at winehq.org
Wed Sep 19 08:16:15 CDT 2007
Module: wine
Branch: master
Commit: ad3fe8562b1b4e71b18d0c69a77caad8189c3d28
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ad3fe8562b1b4e71b18d0c69a77caad8189c3d28
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Fri Sep 14 12:00:46 2007 +0200
wined3d: Enable the stencil test if two sided stencil is used.
---
dlls/wined3d/state.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 1fdceaa..ce8b07d 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -688,7 +688,10 @@ state_stencil(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *c
func, stencilFail, depthFail, stencilPass,
func_ccw, stencilFail_ccw, depthFail_ccw, stencilPass_ccw);
- if (twosided_enable) {
+ if (twosided_enable && onesided_enable) {
+ glEnable(GL_STENCIL_TEST);
+ checkGLcall("glEnable GL_STENCIL_TEST");
+
renderstate_stencil_twosided(stateblock, GL_FRONT, func, ref, mask, stencilFail, depthFail, stencilPass);
renderstate_stencil_twosided(stateblock, GL_BACK, func_ccw, ref, mask, stencilFail_ccw, depthFail_ccw, stencilPass_ccw);
} else {
More information about the wine-cvs
mailing list