mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Handle depth buffer clear when depth image is not set yet.
This commit is contained in:
parent
657a576946
commit
04d1bc385a
7
gDP.cpp
7
gDP.cpp
|
@ -789,8 +789,11 @@ void gDPFillRectangle( s32 ulx, s32 uly, s32 lrx, s32 lry )
|
|||
if (buffer)
|
||||
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();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user