GPU: Update display after loading state

Fixes black frame after switching renderers.
This commit is contained in:
Connor McLaughlin 2019-10-27 21:08:16 +10:00
parent 5f0980c684
commit 4e6596adfb
2 changed files with 2 additions and 0 deletions

View file

@ -140,6 +140,7 @@ bool GPU::DoState(StateWrapper& sw)
std::vector<u16> vram; std::vector<u16> vram;
sw.Do(&vram); sw.Do(&vram);
UpdateVRAM(0, 0, VRAM_WIDTH, VRAM_HEIGHT, vram.data()); UpdateVRAM(0, 0, VRAM_WIDTH, VRAM_HEIGHT, vram.data());
UpdateDisplay();
} }
else else
{ {

View file

@ -71,6 +71,7 @@ void GPU_HW_OpenGL::UpdateResolutionScale()
CreateFramebuffer(); CreateFramebuffer();
CompilePrograms(); CompilePrograms();
UpdateDisplay();
} }
void GPU_HW_OpenGL::DrawRendererStatsWindow() void GPU_HW_OpenGL::DrawRendererStatsWindow()