From b9bc5b5c609dea082d9db64e767c61e859ee7849 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 3 Jul 2015 22:13:35 +0200 Subject: [PATCH] gsdx: add UserHacks_ColorDepthClearOverlap to test some new code debug only --- plugins/GSdx/GSRendererHW.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index dae60ddb9e..f7b0c6d6b7 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -658,14 +658,14 @@ void GSRendererHW::Hacks::SetGameCRC(const CRC::Game& game) m_oi = &GSRendererHW::OI_PointListPalette; } -#if 0 - // FIXME: Enable this code in the future. I think it could replace - // most of the "old" OI hack. So far code was tested on GoW2 & SimpsonsGame with - // success - if (m_oi == NULL) { + + bool hack = theApp.GetConfig("UserHacks_ColorDepthClearOverlap", 0) && theApp.GetConfig("UserHacks", 0); + if (hack && !m_oi) { + // FIXME: Enable this code in the future. I think it could replace + // most of the "old" OI hack. So far code was tested on GoW2 & SimpsonsGame with + // success m_oi = &GSRendererHW::OI_DoubleHalfClear; } -#endif } bool GSRendererHW::OI_DoubleHalfClear(GSTexture* rt, GSTexture* ds, GSTextureCache::Source* t)