1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Handle depth buffer clear when depth image is not set yet.

This commit is contained in:
Sergey Lipskiy 2013-06-04 21:05:56 +07:00
parent 657a576946
commit 04d1bc385a

View File

@ -789,8 +789,11 @@ void gDPFillRectangle( s32 ulx, s32 uly, s32 lrx, s32 lry )
if (buffer) if (buffer)
buffer->cleared = TRUE; buffer->cleared = TRUE;
if (gDP.depthImageAddress == gDP.colorImage.address) if (gDP.depthImageAddress == gDP.colorImage.address) {
{ OGL_ClearDepthBuffer();
return;
} else if (gDP.fillColor.color == 0xfffcfffc) {
DepthBuffer_SetBuffer( gDP.colorImage.address );
OGL_ClearDepthBuffer(); OGL_ClearDepthBuffer();
return; return;
} }