From a8b78a46bd9beef01126d0ab3b8d980b876f1e36 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 27 Aug 2014 23:05:21 -0700 Subject: [PATCH] Forget the bound texture on fbo_create(). Just in case, since it overrides the texture. --- GPU/GLES/Framebuffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 88b501350b..aceec1bd70 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -1191,6 +1191,7 @@ FBO *FramebufferManager::GetTempFBO(u16 w, u16 h, FBOColorDepth depth) { return it->second.fbo; } + textureCache_->ForgetLastTexture(); FBO *fbo = fbo_create(w, h, 1, false, depth); if (!fbo) return fbo; @@ -1445,6 +1446,7 @@ void FramebufferManager::ReadFramebufferToMemory(VirtualFramebuffer *vfb, bool s break; } + textureCache_->ForgetLastTexture(); nvfb->fbo = fbo_create(nvfb->width, nvfb->height, 1, false, nvfb->colorDepth); if (!(nvfb->fbo)) { ERROR_LOG(SCEGE, "Error creating FBO! %i x %i", nvfb->renderWidth, nvfb->renderHeight);