From 2b2412ca20243f14ce81e9d1afc7c9ab5a52f308 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Wed, 1 Jun 2016 22:34:14 +0200 Subject: [PATCH] gsdx hw: disable OI_GsMemClear when framebuffer writes are masked. --- plugins/GSdx/GSRendererHW.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index 3811b25c35..5deaf75991 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -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