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

Correct FrameBuffer::updateEndAddress()

Solved problem with Top Gear Hyper Bike
This commit is contained in:
Sergey Lipskiy 2017-03-02 23:24:42 +07:00
parent d4617b309a
commit 17eb8696ea

View File

@ -181,7 +181,8 @@ void FrameBuffer::init(u32 _address, u16 _format, u16 _size, u16 _width, bool _c
void FrameBuffer::updateEndAddress()
{
m_endAddress = min(RDRAMSize, m_startAddress + (((m_width * m_height) << m_size >> 1) - 1));
const u32 height = max(1U, m_height - 1);
m_endAddress = min(RDRAMSize, m_startAddress + (((m_width * height) << m_size >> 1) - 1));
}
inline