mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-28 02:41:18 +00:00
Add depthTest along with stencilTest since depth Fail/ZPass test used .
This commit is contained in:
parent
728e1a559a
commit
6624bb8100
@ -297,7 +297,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
|
|||||||
glstate.colorMask.set(rmask, gmask, bmask, amask);
|
glstate.colorMask.set(rmask, gmask, bmask, amask);
|
||||||
|
|
||||||
// Stencil Test
|
// Stencil Test
|
||||||
if (gstate.isStencilTestEnabled()) {
|
if (gstate.isStencilTestEnabled() && gstate.isDepthTestEnabled()) {
|
||||||
glstate.stencilTest.enable();
|
glstate.stencilTest.enable();
|
||||||
glstate.stencilFunc.set(ztests[gstate.getStencilTestFunction()],
|
glstate.stencilFunc.set(ztests[gstate.getStencilTestFunction()],
|
||||||
gstate.getStencilTestRef(),
|
gstate.getStencilTestRef(),
|
||||||
|
Loading…
Reference in New Issue
Block a user