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

Correct check for side-by-side buffers in FrameBufferList::renderBuffer()

Fixed Kirby 64 - screen jumps in full screen. #1750
This commit is contained in:
Sergey Lipskiy 2018-09-07 23:00:45 +07:00
parent d4cce52c60
commit be49e9e2e9

View File

@ -1315,7 +1315,7 @@ void FrameBufferList::renderBuffer()
srcHeight = rdpRes.vi_width * ((rdpRes.vi_vres*rdpRes.vi_y_add + rdpRes.vi_y_start) >> 10) / pBuffer->m_width;
const u32 stride = pBuffer->m_width << pBuffer->m_size >> 1;
FrameBuffer *pNextBuffer = findBuffer(rdpRes.vi_origin + stride * (srcHeight - 1));
FrameBuffer *pNextBuffer = findBuffer(rdpRes.vi_origin + stride * min(u32(srcHeight) - 1, pBuffer->m_height - 1) - 1);
if (pNextBuffer == pBuffer)
pNextBuffer = nullptr;