From e0581ee77112f7602781b112e6694388173b5e0c Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 30 Apr 2016 01:37:53 +0200 Subject: [PATCH] gsdx ogl: Finalize the urban chaos workaround Rendering must be nice now --- plugins/GSdx/GSRendererHW.cpp | 2 +- plugins/GSdx/GSRendererOGL.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index 7318f05c5d..6aa06cc50b 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -374,7 +374,7 @@ void GSRendererHW::Draw() const bool draw_sprite_tex = PRIM->TME && (m_vt.m_primclass == GS_SPRITE_CLASS); const GSVector4 delta_p = m_vt.m_max.p - m_vt.m_min.p; - bool single_page = (delta_p.x <= 64.0f) && (delta_p.y <= 32.0f); + bool single_page = (delta_p.x <= 64.0f) && (delta_p.y <= 64.0f); if (m_channel_shuffle) { m_channel_shuffle = draw_sprite_tex && (m_context->TEX0.PSM == PSM_PSMT8) && single_page; diff --git a/plugins/GSdx/GSRendererOGL.cpp b/plugins/GSdx/GSRendererOGL.cpp index a0ab4c7079..1f514048e0 100644 --- a/plugins/GSdx/GSRendererOGL.cpp +++ b/plugins/GSdx/GSRendererOGL.cpp @@ -773,8 +773,7 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour // Pop GL_INS("Red channel"); ps_sel.channel = 1; - } else if (0 && (tex->m_texture->GetType() == GSTexture::DepthStencil) /*&& !(rt->m_32_bits_fmt)*/) { - // FIXME add a 16 bit check + } else if ((tex->m_texture->GetType() == GSTexture::DepthStencil) && !(tex->m_32_bits_fmt)) { GL_INS("Urban Chaos Crazyness"); ps_sel.urban_chaos_hack = 1; } else {