From 3bf88a3c9a45df97ae75c8246f5129e560a0d85f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 3 Aug 2014 18:45:36 -0700 Subject: [PATCH] Disable tests and etc. when destroying framebufs. Fixes #6678. May fix problems loading savestates as well. --- GPU/GLES/Framebuffer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 3299687890..78acea643e 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -2083,6 +2083,9 @@ void FramebufferManager::DestroyAllFBOs() { fbo_destroy(it->second.fbo); } tempFBOs_.clear(); + + fbo_unbind(); + DisableState(); } void FramebufferManager::UpdateFromMemory(u32 addr, int size, bool safe) {