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 Oct 7, 2018
1 parent 03761c5 commit fa1b3d3
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 fa1b3d3

Please sign in to comment.