From c79916711e1faae2a7a3005788ae882889460be2 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 6 Aug 2016 15:56:03 -0700 Subject: [PATCH] gedbg: Fix draw stepping during rendering. Was losing the currently bound framebuffer. --- GPU/GLES/Framebuffer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 9161888dcd..42e346a360 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -2010,7 +2010,9 @@ bool FramebufferManager::GetFramebuffer(u32 fb_address, int fb_stride, GEBufferF glPixelStorei(GL_PACK_ALIGNMENT, 4); SafeGLReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, buffer.GetData()); - fbo_unbind(); + // We may have clitted to a temp FBO. + fbo_unbind_read(); + RebindFramebuffer(); return true; }