mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Merge pull request #1783 from RPCS3/gl-flip
OGL: disable pixel processing test before flip
This commit is contained in:
commit
c4733a6eab
1 changed files with 5 additions and 7 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue