Add depthTest along with stencilTest since depth Fail/ZPass test used .

This commit is contained in:
raven02 2013-09-03 21:26:06 +08:00
parent 728e1a559a
commit 6624bb8100

View File

@ -297,7 +297,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
glstate.colorMask.set(rmask, gmask, bmask, amask);
// Stencil Test
if (gstate.isStencilTestEnabled()) {
if (gstate.isStencilTestEnabled() && gstate.isDepthTestEnabled()) {
glstate.stencilTest.enable();
glstate.stencilFunc.set(ztests[gstate.getStencilTestFunction()],
gstate.getStencilTestRef(),