From 40958317726516468abc14e90f6887cb7c0e3507 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 26 May 2014 23:26:29 -0700 Subject: [PATCH] Allow changing "read framebuffers" at runtime. Fixes #6149. --- GPU/GLES/Framebuffer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index bbae08a79..ad86a5780 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -1702,7 +1702,7 @@ void FramebufferManager::EndFrame() { #ifndef USING_GLES2 // We flush to memory last requested framebuffer, if any. // Only do this in the read-framebuffer modes. - if (g_Config.iRenderingMode == FB_READFBOMEMORY_CPU || g_Config.iRenderingMode == FB_READFBOMEMORY_GPU) + if (updateVRAM_) PackFramebufferAsync_(NULL); #endif } @@ -1717,6 +1717,7 @@ void FramebufferManager::BeginFrame() { DecimateFBOs(); currentRenderVfb_ = 0; useBufferedRendering_ = g_Config.iRenderingMode != FB_NON_BUFFERED_MODE; + updateVRAM_ = !(g_Config.iRenderingMode == FB_NON_BUFFERED_MODE || g_Config.iRenderingMode == FB_BUFFERED_MODE); } void FramebufferManager::SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat format) {