From 5105c6cd93131ced24ec13042d1581d9532b08f8 Mon Sep 17 00:00:00 2001 From: raven02 Date: Sun, 24 Feb 2013 02:44:52 +0800 Subject: [PATCH] Add glstate.stencilTest.disable(); --- GPU/GLES/Framebuffer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 4ed482d1c1..f4caeaf647 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -421,7 +421,8 @@ void FramebufferManager::CopyDisplayToOutput() { glstate.cullFace.disable(); glstate.depthTest.disable(); glstate.scissorTest.disable(); - + glstate.stencilTest.disable(); + fbo_bind_color_as_texture(vfb->fbo, 0); if (resized_) { @@ -451,6 +452,8 @@ void FramebufferManager::BeginFrame() { glstate.cullFace.disable(); glstate.depthTest.disable(); glstate.blend.disable(); + glstate.scissorTest.disable(); + glstate.stencilTest.disable(); DrawPixels(pspframebuf, displayFormat_, displayStride_); // TODO: restore state? }