Revert a change in the previous commit which breaks sprite stripping.
Fixes sparks glitch in Sonic Adventure 2
This commit is contained in:
parent
e59d7eaf3d
commit
1546e4fa8a
|
@ -1243,15 +1243,17 @@ public:
|
|||
__forceinline
|
||||
static void AppendSpriteVertexA(TA_Sprite1A* sv)
|
||||
{
|
||||
u16* idx=vdrc.idx.Append(4);
|
||||
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;
|
||||
|
||||
CurrentPP->count=vdrc.idx.used()-CurrentPP->first;
|
||||
CurrentPP->count=vdrc.idx.used()-CurrentPP->first-2;
|
||||
|
||||
Vertex* cv = vdrc.verts.Append(4);
|
||||
|
||||
|
|
Loading…
Reference in New Issue