1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Correct FrameBufferList::correctHeight() :

do not change buffer if new buffer height is the same as the current one.
This commit is contained in:
Sergey Lipskiy 2015-09-20 20:09:59 +06:00
parent 22a1e6a39f
commit 6ad1d1d3a5

View File

@ -382,13 +382,14 @@ void FrameBufferList::correctHeight()
return;
}
if (m_pCurrent->m_needHeightCorrection && m_pCurrent->m_width == gDP.scissor.lrx) {
m_pCurrent->reinit((u32)gDP.scissor.lry);
if (m_pCurrent->_isMarioTennisScoreboard())
g_RDRAMtoFB.CopyFromRDRAM(m_pCurrent->m_startAddress + 4, false);
if (m_pCurrent->m_height != gDP.scissor.lry) {
m_pCurrent->reinit((u32)gDP.scissor.lry);
if (m_pCurrent->_isMarioTennisScoreboard())
g_RDRAMtoFB.CopyFromRDRAM(m_pCurrent->m_startAddress + 4, false);
gSP.changed |= CHANGED_VIEWPORT;
}
m_pCurrent->m_needHeightCorrection = false;
gSP.changed |= CHANGED_VIEWPORT;
}
}