From ac56a7ee65c8c48d9742f82d106ff6ff47267504 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 1 Sep 2013 11:41:11 -0700 Subject: [PATCH] Keep framebuffer sources alive. Hopefully this is not too dangerous... --- GPU/GLES/TextureCache.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GPU/GLES/TextureCache.cpp b/GPU/GLES/TextureCache.cpp index f9cdc06b9..1acb1c1b5 100644 --- a/GPU/GLES/TextureCache.cpp +++ b/GPU/GLES/TextureCache.cpp @@ -978,6 +978,9 @@ void TextureCache::SetTextureFramebuffer(TexCacheEntry *entry) // But let's still not use random memory. if (entry->framebuffer->fbo && entry->invalidHint != -1) { fbo_bind_color_as_texture(entry->framebuffer->fbo, 0); + // Keep the framebuffer alive. + // TODO: Dangerous if it sets a new one? + entry->framebuffer->last_frame_used = gpuStats.numFlips; } else { glBindTexture(GL_TEXTURE_2D, 0); gstate_c.skipDrawReason |= SKIPDRAW_BAD_FB_TEXTURE;