mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Correct condition for depth buffer clear again.
Fixed Body Harvest graphics missing (Regression) #1107
This commit is contained in:
parent
669337f5ab
commit
27cdae1e33
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user