From 7f8c7aa71c57f2746cb148e257bb97346dff1506 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 5 Oct 2019 15:05:46 +1000 Subject: [PATCH] GPU: Invalidate VRAM read texture when recreating framebuffer --- src/core/gpu_hw_opengl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/gpu_hw_opengl.cpp b/src/core/gpu_hw_opengl.cpp index 8eac9ab23..8b9ecd09a 100644 --- a/src/core/gpu_hw_opengl.cpp +++ b/src/core/gpu_hw_opengl.cpp @@ -223,6 +223,7 @@ void GPU_HW_OpenGL::CreateFramebuffer() Assert(glCheckFramebufferStatus(GL_DRAW_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, m_vram_fbo); + m_vram_read_texture_dirty = true; } void GPU_HW_OpenGL::ClearFramebuffer()