From bad98806921de858402375def8f7632a0d47d31b Mon Sep 17 00:00:00 2001 From: hrydgard Date: Thu, 2 Jul 2009 20:06:39 +0000 Subject: [PATCH] GL: should probably rebind the efb FBO after the z peek.. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3650 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp index 1c87032a12..b2067f23a0 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp @@ -496,6 +496,11 @@ void Video_OnThreadAccessEFB() // Clamp the 32bits value returned by glReadPixels to a 24bits value (GC uses a 24bits Z-Buffer) s_AccessEFBResult = z / 0x100; + + // We should probably re-bind the old fbo here. + if (g_Config.iMultisampleMode != MULTISAMPLE_OFF) { + Renderer::SetFramebuffer(0); + } } break;