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

Add VI parameters correction to RSP_ProcessDList().

Pokemon Stadium can change REG.VI_ORIGIN without call to VI_UpdateScreen(),
at least with Project64. Thus, frame buffer allocation may work with
obsolete VI info, which causes various glitches, e.g #415
This commit is contained in:
Sergey Lipskiy 2015-09-24 17:59:14 +06:00
parent 24885907d8
commit 1beadcb625

View File

@ -141,6 +141,10 @@ void RSP_ProcessDList()
gDPFullSync();
return;
}
if (*REG.VI_ORIGIN != VI.lastOrigin) {
VI_UpdateSize();
video().updateScale();
}
RSP.PC[0] = *(u32*)&DMEM[0x0FF0];
RSP.PCi = 0;