From 87434e8dada87a768de7c402b168d68291141647 Mon Sep 17 00:00:00 2001 From: raven02 Date: Sun, 18 Aug 2013 21:36:31 +0800 Subject: [PATCH] softgpu : Fix depth issue in FF Type-0 --- GPU/Software/Rasterizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/Software/Rasterizer.cpp b/GPU/Software/Rasterizer.cpp index c7741663de..04f89a6329 100644 --- a/GPU/Software/Rasterizer.cpp +++ b/GPU/Software/Rasterizer.cpp @@ -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);