From 27cdae1e3304468ca3c8adcbccc1a89bbd03129d Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Mon, 5 Sep 2016 12:14:51 +0700 Subject: [PATCH] Correct condition for depth buffer clear again. Fixed Body Harvest graphics missing (Regression) #1107 --- src/gDP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gDP.cpp b/src/gDP.cpp index 510b839d..92c8895d 100644 --- a/src/gDP.cpp +++ b/src/gDP.cpp @@ -770,7 +770,7 @@ void gDPFillRectangle( s32 ulx, s32 uly, s32 lrx, s32 lry ) // Game may use depth texture as auxilary color texture. Example: Mario Tennis // If color is not depth clear color, that is most likely the case if (gDP.fillColor.color == DepthClearColor) { - if ((ulx == 0) && (lrx == gDP.colorImage.width)) { + if ((ulx == 0) && (uly == 0) && (lrx == gDP.scissor.lrx) && (lry == gDP.scissor.lry)) { gDPFillRDRAM(gDP.colorImage.address, ulx, uly, lrx, lry, gDP.colorImage.width, gDP.colorImage.size, gDP.fillColor.color); render.clearDepthBuffer(uly, lry); bBufferCleared = true;