From e7f0bf71bfb9bef9d2a7aa01ebd2e6a141a1050a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 12 Apr 2013 07:09:45 -0700 Subject: [PATCH] Don't go decimate happy on FBOs if a game reuses. Some games, e.g. games that render at < 60fps, reuse FBOs. This was making all three pointers the same, making us more likely to decimate things when we ought not to. --- GPU/GLES/Framebuffer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 5d641299d6..9847b994a1 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -481,8 +481,12 @@ void FramebufferManager::CopyDisplayToOutput() { vfb->usageFlags |= FB_USAGE_DISPLAYED_FRAMEBUFFER; vfb->dirtyAfterDisplay = false; - prevPrevDisplayFramebuf_ = prevDisplayFramebuf_; - prevDisplayFramebuf_ = displayFramebuf_; + if (prevDisplayFramebuf_ != displayFramebuf_) { + prevPrevDisplayFramebuf_ = prevDisplayFramebuf_; + } + if (displayFramebuf_ != vfb) { + prevDisplayFramebuf_ = displayFramebuf_; + } displayFramebuf_ = vfb; currentRenderVfb_ = 0;