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

Correct main bufer height calculation again:

fix regression caused by commit 3215a8ad5d

Fixed regression issue #902
This commit is contained in:
Sergey Lipskiy 2016-03-19 19:19:10 +06:00
parent 04b1f3f9f9
commit 05466632af

View File

@ -538,9 +538,9 @@ void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _widt
if (m_pCurrent != NULL) {
// Correct buffer's end address
if (!m_pCurrent->isAuxiliary()) {
if (gDP.colorImage.height != 0)
if (gDP.colorImage.height > 200)
m_prevColorImageHeight = gDP.colorImage.height;
else
else if (gDP.colorImage.height == 0)
gDP.colorImage.height = m_prevColorImageHeight;
gDP.colorImage.height = min(gDP.colorImage.height, VI.height);
m_pCurrent->m_endAddress = min(RDRAMSize, m_pCurrent->m_startAddress + (((m_pCurrent->m_width * gDP.colorImage.height) << m_pCurrent->m_size >> 1) - 1));