From 6ffe4c0280ef483527cf804f44f8960ecfef7aa0 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Fri, 17 Aug 2018 19:13:59 +0200 Subject: [PATCH] Sprites face culling is reversed. Fixes South Park Rally and Wacky Races invisible menus. --- core/hw/pvr/ta_vtx.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/hw/pvr/ta_vtx.cpp b/core/hw/pvr/ta_vtx.cpp index 0177d9f9e..0ec90a2b7 100644 --- a/core/hw/pvr/ta_vtx.cpp +++ b/core/hw/pvr/ta_vtx.cpp @@ -1220,6 +1220,8 @@ public: SFaceBaseColor=spr->BaseCol; SFaceOffsColor=spr->OffsCol; + + d_pp->isp.CullMode ^= 1; } #define append_sprite(indx) \ @@ -1241,17 +1243,17 @@ public: __forceinline static void AppendSpriteVertexA(TA_Sprite1A* sv) { - u16* idx=vdrc.idx.Append(6); + u16* idx=vdrc.idx.Append(6); u32 vbase=vdrc.verts.used(); idx[0]=vbase+0; idx[1]=vbase+1; idx[2]=vbase+2; idx[3]=vbase+3; - idx[4]=vbase+3; - idx[5]=vbase+4; + idx[4]=vbase+3; + idx[5]=vbase+4; - CurrentPP->count=vdrc.idx.used()-CurrentPP->first-2; + CurrentPP->count=vdrc.idx.used()-CurrentPP->first-2; Vertex* cv = vdrc.verts.Append(4);