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
This commit is contained in:
gabest11 2012-01-23 05:26:07 +00:00
parent 899bad9dcb
commit f47e261ade
1 changed files with 7 additions and 2 deletions

View File

@ -737,8 +737,13 @@ template<int i> 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))
{