mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Apply scissor to all input coordinates in FrameBufferList::fillRDRAM.
Fixed Super Smash Bros Intro not playing with Framebuffer Emulation enabled #1154
This commit is contained in:
parent
6f4f24a812
commit
ff55e5bea9
|
@ -961,9 +961,9 @@ void FrameBufferList::fillRDRAM(s32 ulx, s32 uly, s32 lrx, s32 lry)
|
||||||
if (m_pCurrent == nullptr)
|
if (m_pCurrent == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ulx = max(0, ulx);
|
ulx = min(max((float)ulx, gDP.scissor.ulx), gDP.scissor.lrx);
|
||||||
lrx = min(gDP.colorImage.width, (u32)lrx);
|
lrx = min(max((float)lrx, gDP.scissor.ulx), gDP.scissor.lrx);
|
||||||
uly = max(0, uly);
|
uly = min(max((float)uly, gDP.scissor.uly), gDP.scissor.lry);
|
||||||
lry = min(max((float)lry, gDP.scissor.uly), gDP.scissor.lry);
|
lry = min(max((float)lry, gDP.scissor.uly), gDP.scissor.lry);
|
||||||
|
|
||||||
const u32 stride = gDP.colorImage.width << gDP.colorImage.size >> 1;
|
const u32 stride = gDP.colorImage.width << gDP.colorImage.size >> 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user