mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Correct frame buffer end address calculation in FrameBufferList::saveBuffer.
Fixed gfx not showing with fb emulation on in Top Gear Hyper Bike #45
This commit is contained in:
parent
34d638a0a3
commit
bb6a9b3549
|
@ -300,7 +300,7 @@ void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _widt
|
|||
gDPFillRDRAM(m_pCurrent->m_startAddress, 0, 0, m_pCurrent->m_width, gDP.colorImage.height, m_pCurrent->m_width, m_pCurrent->m_size, m_pCurrent->m_fillcolor);
|
||||
}
|
||||
|
||||
const u32 endAddress = _address + ((_width * _height << _size >> 1) - 1);
|
||||
const u32 endAddress = _address + ((_width * (_height - 1)) << _size >> 1) - 1;
|
||||
if (m_pCurrent == NULL || m_pCurrent->m_startAddress != _address || m_pCurrent->m_width != _width)
|
||||
m_pCurrent = _findBuffer(_address, endAddress, _width);
|
||||
if (m_pCurrent != NULL) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user