From 8d24aa2b395c55c5249ae516ab771bc2dcc39ce5 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 30 Sep 2016 19:15:25 +0200 Subject: [PATCH] gsdx: GoW2 half screen bug ... Seriously ... --- plugins/GSdx/GSRendererHW.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index 225be8c8b3..f933616024 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -660,7 +660,8 @@ void GSRendererHW::Draw() if (!m_userhacks_disable_gs_mem_clear) { // Constant Direct Write without texture/test/blending (aka a GS mem clear) - if ((m_vt.m_primclass == GS_SPRITE_CLASS) && !PRIM->TME && !PRIM->ABE // Direct write + if ((m_vt.m_primclass == GS_SPRITE_CLASS) && !PRIM->TME // Direct write + && (!PRIM->ABE || m_context->ALPHA.IsOpaque()) // No transparency && (m_context->FRAME.FBMSK == 0) // no color mask && !m_context->TEST.ATE // no alpha test && (!m_context->TEST.ZTE || m_context->TEST.ZTST == ZTST_ALWAYS) // no depth test