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

Correct depth buffer attachment.

Fixed Link's portrait is missing in the pause screen #1134
This commit is contained in:
Sergey Lipskiy 2016-09-26 17:15:47 +07:00
parent 16406bb1b0
commit f426d61881

View File

@ -399,10 +399,11 @@ void DepthBufferList::saveBuffer(u32 _address)
pDepthBuffer = &buffer;
}
if (pDepthBuffer->m_address == gDP.depthImageAddress) {
m_pCurrent = pDepthBuffer;
frameBufferList().attachDepthBuffer();
}
DepthBuffer * pCurrent = m_pCurrent;
m_pCurrent = pDepthBuffer;
frameBufferList().attachDepthBuffer();
if (pDepthBuffer->m_address != gDP.depthImageAddress)
m_pCurrent = pCurrent;
#ifdef DEBUG
DebugMsg( DEBUG_HIGH | DEBUG_HANDLED, "DepthBuffer_SetBuffer( 0x%08X ); color buffer is 0x%08X\n",