From f47e261ade30849b21665e658ab7a18d55f228b2 Mon Sep 17 00:00:00 2001 From: gabest11 Date: Mon, 23 Jan 2012 05:26:07 +0000 Subject: [PATCH] GSdx: fix for tokyo xtreme racing invisible letters, laz0rs did not set the texture size. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5082 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GSState.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/GSState.cpp b/plugins/GSdx/GSState.cpp index 9864fa3648..798b60beb1 100644 --- a/plugins/GSdx/GSState.cpp +++ b/plugins/GSdx/GSState.cpp @@ -737,8 +737,13 @@ template void GSState::GIFRegHandlerTEX0(const GIFReg* RESTRICT r) { GIFRegTEX0 TEX0 = r->TEX0; - if(TEX0.TW > 10) TEX0.TW = 10; - if(TEX0.TH > 10) TEX0.TH = 10; + // Tokyo Xtreme Racer Drift 2, TW/TH == 0, PRIM->FST == 1 + // Just setting the max texture size to make the texture cache allocate some surface. + // The vertex trace will narrow the updated area down to the minimum, upper-left 8x8 + // for a single letter, but it may address the whole thing if it wants to. + + if(TEX0.TW > 10 || TEX0.TW == 0) TEX0.TW = 10; + if(TEX0.TH > 10 || TEX0.TH == 0) TEX0.TH = 10; if((TEX0.TBW & 1) && (TEX0.PSM == PSM_PSMT8 || TEX0.PSM == PSM_PSMT4)) {