diff --git a/RDP.cpp b/RDP.cpp index dd161244..7914a9ee 100644 --- a/RDP.cpp +++ b/RDP.cpp @@ -4,8 +4,6 @@ #include "GBI.h" #include "gDP.h" #include "gSP.h" -#include "VI.h" -#include "OpenGL.h" #include "Debug.h" void RDP_Unknown( u32 w0, u32 w1 ) @@ -509,9 +507,6 @@ void RDP_ProcessRDPList() if (dp_end <= dp_current) return; - VI_UpdateSize(); - video().updateScale(); - RSP.bLLE = true; // load command data diff --git a/VI.cpp b/VI.cpp index 07ec91e5..5c423a6d 100644 --- a/VI.cpp +++ b/VI.cpp @@ -79,6 +79,11 @@ void VI_UpdateScreen() return; ogl.saveScreenshot(); + if (RSP.bLLE && *REG.VI_ORIGIN != VI.lastOrigin) { + VI_UpdateSize(); + video().updateScale(); + } + if (config.frameBufferEmulation.enable) { const bool bCFB = !config.frameBufferEmulation.ignoreCFB && (gSP.changed&CHANGED_CPU_FB_WRITE) == CHANGED_CPU_FB_WRITE; const bool bNeedUpdate = bCFB ? true : (*REG.VI_ORIGIN != VI.lastOrigin);// && gDP.colorImage.changed;