OGL: disable pixel processing test before flip

This commit is contained in:
raven02 2016-06-15 11:19:20 +08:00
parent a66147705f
commit 9f1ee5bd28
1 changed files with 5 additions and 7 deletions

View File

@ -608,6 +608,11 @@ void GLGSRender::flip(int buffer)
u32 buffer_height = gcm_buffers[buffer].height; u32 buffer_height = gcm_buffers[buffer].height;
u32 buffer_pitch = gcm_buffers[buffer].pitch; u32 buffer_pitch = gcm_buffers[buffer].pitch;
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
glDisable(GL_SCISSOR_TEST);
glDisable(GL_DEPTH_TEST);
glDisable(GL_STENCIL_TEST);
rsx::tiled_region buffer_region = get_tiled_address(gcm_buffers[buffer].offset, CELL_GCM_LOCATION_LOCAL); rsx::tiled_region buffer_region = get_tiled_address(gcm_buffers[buffer].offset, CELL_GCM_LOCATION_LOCAL);
bool skip_read = false; bool skip_read = false;
@ -654,13 +659,6 @@ void GLGSRender::flip(int buffer)
m_flip_fbo.bind(); m_flip_fbo.bind();
glDisable(GL_SCISSOR_TEST);
glDisable(GL_DEPTH_TEST);
glDisable(GL_STENCIL_TEST);
glDisable(GL_BLEND);
glDisable(GL_LOGIC_OP);
glDisable(GL_CULL_FACE);
if (buffer_region.tile) if (buffer_region.tile)
{ {
std::unique_ptr<u8[]> temp(new u8[buffer_height * buffer_pitch]); std::unique_ptr<u8[]> temp(new u8[buffer_height * buffer_pitch]);