From 4e6596adfbf036763bd1c611b62159a306ce4883 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 27 Oct 2019 21:08:16 +1000 Subject: [PATCH] GPU: Update display after loading state Fixes black frame after switching renderers. --- src/core/gpu.cpp | 1 + src/core/gpu_hw_opengl.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/gpu.cpp b/src/core/gpu.cpp index 5d49aa765..bade8b421 100644 --- a/src/core/gpu.cpp +++ b/src/core/gpu.cpp @@ -140,6 +140,7 @@ bool GPU::DoState(StateWrapper& sw) std::vector vram; sw.Do(&vram); UpdateVRAM(0, 0, VRAM_WIDTH, VRAM_HEIGHT, vram.data()); + UpdateDisplay(); } else { diff --git a/src/core/gpu_hw_opengl.cpp b/src/core/gpu_hw_opengl.cpp index b9085bf97..bec37b46f 100644 --- a/src/core/gpu_hw_opengl.cpp +++ b/src/core/gpu_hw_opengl.cpp @@ -71,6 +71,7 @@ void GPU_HW_OpenGL::UpdateResolutionScale() CreateFramebuffer(); CompilePrograms(); + UpdateDisplay(); } void GPU_HW_OpenGL::DrawRendererStatsWindow()