1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Force clear depth buffer, if there is no corresponding color buffer for it.

Fixed GoldenEye Multiplayer - 3&4 player not rendering #1173
This commit is contained in:
Sergey Lipskiy 2018-09-17 19:57:17 +07:00
parent d2bca602a1
commit f2ba87c241

View File

@ -468,6 +468,8 @@ void DepthBufferList::saveBuffer(u32 _address)
DepthBuffer * pCurrent = m_pCurrent;
m_pCurrent = pDepthBuffer;
frameBufferList().attachDepthBuffer();
if (pFrameBuffer == nullptr)
gfxContext.clearDepthBuffer();
if (pDepthBuffer->m_address != gDP.depthImageAddress)
m_pCurrent = pCurrent;
}