From b5304cce57a0ac035b082463410742fae5007f2f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 1 Sep 2013 14:44:37 -0700 Subject: [PATCH] Consider all framebuffers before settling. --- GPU/GLES/TextureCache.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/GPU/GLES/TextureCache.cpp b/GPU/GLES/TextureCache.cpp index 6b53304b54..7254876d9c 100644 --- a/GPU/GLES/TextureCache.cpp +++ b/GPU/GLES/TextureCache.cpp @@ -1224,14 +1224,14 @@ void TextureCache::SetTexture() { if (cachekey >= cacheKeyStart && cachekey < cacheKeyEnd) { AttachFramebuffer(entry, framebuffer->fb_address, framebuffer, cachekey == cacheKeyStart); } + } - // If we ended up with a framebuffer, attach it - no memory needed. - if (entry->framebuffer) { - SetTextureFramebuffer(entry); - lastBoundTexture = -1; - entry->lastFrame = gpuStats.numFlips; - return; - } + // If we ended up with a framebuffer, attach it - no texture decoding needed. + if (entry->framebuffer) { + SetTextureFramebuffer(entry); + lastBoundTexture = -1; + entry->lastFrame = gpuStats.numFlips; + return; } if (!replaceImages) {