diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index d29a59542b..79a0bce9f1 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -1016,12 +1016,6 @@ void FramebufferManager::CopyDisplayToOutput() { } displayFramebuf_ = vfb; - if (resized_) { - ClearBuffer(); - DestroyDraw2DProgram(); - SetLineWidth(); - } - if (vfb->fbo) { DEBUG_LOG(SCEGE, "Displaying FBO %08x", vfb->fb_address); DisableState(); @@ -1661,6 +1655,7 @@ void FramebufferManager::EndFrame() { if (resized_) { // TODO: Only do this if the new size actually changed the renderwidth/height. DestroyAllFBOs(); + // Probably not necessary glstate.viewport.set(0, 0, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight); @@ -1692,6 +1687,9 @@ void FramebufferManager::EndFrame() { #ifdef _WIN32 ShowScreenResolution(); #endif + ClearBuffer(); + DestroyDraw2DProgram(); + SetLineWidth(); } #ifndef USING_GLES2