From c6dc6b46e55ebe09ffa884441383477fe3e6783e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 19 Jan 2014 18:27:52 -0800 Subject: [PATCH] Clear the duplicate FBO on shutdown. --- GPU/GLES/Framebuffer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index e678c52c70..aec6886ec7 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -332,6 +332,9 @@ FramebufferManager::~FramebufferManager() { } SetNumExtraFBOs(0); + if (renderCopy_) + fbo_destroy(renderCopy_); + #ifndef USING_GLES2 delete [] pixelBufObj_; #endif