mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-25 10:37:52 +00:00
softgpu : Fix depth issue in FF Type-0
This commit is contained in:
parent
f4c05392e2
commit
87434e8dad
@ -750,7 +750,8 @@ void DrawTriangle(const VertexData& v0, const VertexData& v1, const VertexData&
|
||||
}
|
||||
|
||||
// TODO: Is it safe to ignore gstate.isDepthTestEnabled() when clear mode is enabled?
|
||||
if ((gstate.isDepthTestEnabled() && !gstate.isModeThrough()) || gstate.isModeClear()) {
|
||||
// TODO: Verify that through mode does not disable depth testing
|
||||
if (gstate.isDepthTestEnabled() || gstate.isModeClear()) {
|
||||
// TODO: Verify that stencil op indeed needs to be applied here even if stencil testing is disabled
|
||||
if (!DepthTestPassed(p.x, p.y, z)) {
|
||||
ApplyStencilOp(gstate.getStencilOpZFail(), p.x, p.y);
|
||||
|
Loading…
x
Reference in New Issue
Block a user