Skip to content

Commit

Permalink
Force clear depth buffer, if there is no corresponding color buffer f…
Browse files Browse the repository at this point in the history
…or it.

Fixed GoldenEye Multiplayer - 3&4 player not rendering #1173
  • Loading branch information
gonetz committed Sep 24, 2018
1 parent cf9ffab commit 382d1f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DepthBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 382d1f4

Please sign in to comment.