mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
899bad9dcb
commit
f47e261ade
|
@ -737,8 +737,13 @@ template<int i> void GSState::GIFRegHandlerTEX0(const GIFReg* RESTRICT r)
|
||||||
{
|
{
|
||||||
GIFRegTEX0 TEX0 = r->TEX0;
|
GIFRegTEX0 TEX0 = r->TEX0;
|
||||||
|
|
||||||
if(TEX0.TW > 10) TEX0.TW = 10;
|
// Tokyo Xtreme Racer Drift 2, TW/TH == 0, PRIM->FST == 1
|
||||||
if(TEX0.TH > 10) TEX0.TH = 10;
|
// 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))
|
if((TEX0.TBW & 1) && (TEX0.PSM == PSM_PSMT8 || TEX0.PSM == PSM_PSMT4))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue