From f2c77ffa08bcbe91e49b9478ece2aa2f43216e5a Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sun, 26 Jul 2015 10:12:49 +0200 Subject: [PATCH] gsdx:tc: detect texture shuffle in previous frame GoW2 uses the effect at the start of a new frame and therefore need the state of the previous frame. (Note 1 issue remains) Ricky need to be tested. --- plugins/GSdx/GSTextureCache.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GSTextureCache.cpp b/plugins/GSdx/GSTextureCache.cpp index 5c5fae8c0d..3839b7238c 100644 --- a/plugins/GSdx/GSTextureCache.cpp +++ b/plugins/GSdx/GSTextureCache.cpp @@ -810,7 +810,10 @@ void GSTextureCache::IncAge() // probability that game will do it on the current RT. // Variable is cleared here to avoid issue with game that uses a 16 bits // render target - t->m_32_bits_fmt = false; + if (t->m_age > 0) { + // GoW2 uses the effect at the start of the frame + t->m_32_bits_fmt = false; + } if(++t->m_age > maxage) {