gsdx hw: disable OI_GsMemClear when framebuffer writes are masked.

This commit is contained in:
Gregory Hainaut 2016-06-01 22:34:14 +02:00
parent 7202cac7d0
commit 2b2412ca20
1 changed files with 1 additions and 0 deletions

View File

@ -864,6 +864,7 @@ void GSRendererHW::OI_GsMemClear()
{
// Rectangle draw without texture
if ((m_vt.m_primclass == GS_SPRITE_CLASS) && (m_vertex.next == 2) && !PRIM->TME && !PRIM->ABE // Direct write
&& (m_context->FRAME.FBMSK == 0)
&& !m_context->TEST.ATE // no alpha test
&& (!m_context->TEST.ZTE || m_context->TEST.ZTST == ZTST_ALWAYS) // no depth test
&& (m_vt.m_eq.rgba == 0xFFFF && m_vt.m_min.c.eq(GSVector4i(0))) // Constant 0 write