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

Move call to VI_UpdateSize() from RSP_ProcessDList() to VI_UpdateScreen().

This commit is contained in:
Sergey Lipskiy 2014-11-28 16:24:58 +06:00
parent c60e461c1f
commit e2e75a81be
3 changed files with 3 additions and 5 deletions

View File

@ -543,6 +543,7 @@ void RDP_ProcessRDPList()
RDP.cmd_cur = 0; RDP.cmd_cur = 0;
} }
RSP.bLLE = false;
gSP.changed |= CHANGED_COLORBUFFER; gSP.changed |= CHANGED_COLORBUFFER;
dp_start = dp_current = dp_end; dp_start = dp_current = dp_end;

View File

@ -136,9 +136,6 @@ void RSP_CheckDLCounter()
void RSP_ProcessDList() void RSP_ProcessDList()
{ {
VI_UpdateSize();
video().updateScale();
RSP.PC[0] = *(u32*)&DMEM[0x0FF0]; RSP.PC[0] = *(u32*)&DMEM[0x0FF0];
RSP.PCi = 0; RSP.PCi = 0;
RSP.count = -1; RSP.count = -1;

4
VI.cpp
View File

@ -79,7 +79,7 @@ void VI_UpdateScreen()
return; return;
ogl.saveScreenshot(); ogl.saveScreenshot();
if (RSP.bLLE && *REG.VI_ORIGIN != VI.lastOrigin) { if (*REG.VI_ORIGIN != VI.lastOrigin) {
VI_UpdateSize(); VI_UpdateSize();
video().updateScale(); video().updateScale();
} }
@ -126,8 +126,8 @@ void VI_UpdateScreen()
while (Debug.paused && !Debug.step); while (Debug.paused && !Debug.step);
Debug.step = FALSE; Debug.step = FALSE;
#endif #endif
VI.lastOrigin = *REG.VI_ORIGIN;
} }
VI.lastOrigin = *REG.VI_ORIGIN;
} }
if (VI.lastOrigin == 0) { // Workaround for Mupen64Plus issue with initialization if (VI.lastOrigin == 0) { // Workaround for Mupen64Plus issue with initialization