From 7b0427e86e2e7e35e313bcf6cf5b5325825a73b6 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 5 May 2016 15:46:21 +0200 Subject: [PATCH] gsdx hack: use psm lookup + remove now useless log --- plugins/GSdx/GSHwHack.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/plugins/GSdx/GSHwHack.cpp b/plugins/GSdx/GSHwHack.cpp index b2fa15ecdb..05a00c9c45 100644 --- a/plugins/GSdx/GSHwHack.cpp +++ b/plugins/GSdx/GSHwHack.cpp @@ -2623,20 +2623,13 @@ bool GSState::IsBadFrame(int& skip, int UserHacks_SkipDraw) if(fi.TME) { // depth textures (bully, mgs3s1 intro, Front Mission 5) - if( (fi.TPSM == PSM_PSMZ32 || fi.TPSM == PSM_PSMZ24 || fi.TPSM == PSM_PSMZ16 || fi.TPSM == PSM_PSMZ16S) || - // General, often problematic post processing - (GSUtil::HasSharedBits(fi.FBP, fi.FPSM, fi.TBP0, fi.TPSM)) ) + // General, often problematic post processing + if (GSLocalMemory::m_psm[fi.TPSM].depth || GSUtil::HasSharedBits(fi.FBP, fi.FPSM, fi.TBP0, fi.TPSM)) { skip = UserHacks_SkipDraw; } } } -#ifdef ENABLE_OGL_DEBUG - else if (fi.TME) { - if(fi.TPSM == PSM_PSMZ32 || fi.TPSM == PSM_PSMZ24 || fi.TPSM == PSM_PSMZ16 || fi.TPSM == PSM_PSMZ16S) - GL_INS("!!! Depth Texture 0x%x!!!", fi.TPSM); - } -#endif if(skip > 0) {