mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: reduce toggling of scissor state for DATE
This commit is contained in:
parent
71e517108d
commit
7367b22e03
|
@ -948,7 +948,7 @@ void GSDeviceOGL::SetupDATE(GSTexture* rt, GSTexture* ds, const GSVertexPT1* ver
|
|||
|
||||
OMSetDepthStencilState(m_date.dss, 1);
|
||||
OMSetBlendState(m_date.bs, 0);
|
||||
OMSetRenderTargets(t, ds);
|
||||
OMSetRenderTargets(t, ds, &GLState::scissor);
|
||||
|
||||
// ia
|
||||
|
||||
|
|
|
@ -265,6 +265,7 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
|
|||
|
||||
// Reduce the quantity of clean function
|
||||
glScissor( ri.x, ri.y, ri.width(), ri.height() );
|
||||
GLState::scissor = ri;
|
||||
|
||||
// Must be done here to avoid any GL state pertubation (clear function...)
|
||||
// Create an r32ui image that will containt primitive ID
|
||||
|
@ -287,10 +288,6 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
|
|||
|
||||
dev->SetupDATE(rt, ds, vertices, m_context->TEST.DATM);
|
||||
}
|
||||
|
||||
// Restore the scissor state
|
||||
ri = GLState::scissor;
|
||||
glScissor( ri.x, ri.y, ri.width(), ri.height() );
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue