diff --git a/GPU/GLES/StateMapping.cpp b/GPU/GLES/StateMapping.cpp index 5ce63c09d..0dbb4a9fa 100644 --- a/GPU/GLES/StateMapping.cpp +++ b/GPU/GLES/StateMapping.cpp @@ -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(),