Skip to content

Commit

Permalink
Correct DMA_Tri command for JFG.
Browse files Browse the repository at this point in the history
See gonetz#2831 for details.
  • Loading branch information
gonetz committed May 1, 2024
1 parent 576ad87 commit b021d8e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/uCodes/F3DDKR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ void F3DDKR_DMA_Tri(u32 w0, u32 w1)
gSP.vertexi = 0;
}

void F3DJFG_DMA_Tri(u32 w0, u32 w1)
{
gSP.texture.on = _SHIFTR(w0, 16, 4);
gSPDMATriangles(w1, _SHIFTR(w0, 20, 4) + 1);
gSP.vertexi = 0;
}

void F3DDKR_DMA_DList( u32 w0, u32 w1 )
{
gSPDlistCount(_SHIFTR(w0, 16, 8), w1);
Expand Down Expand Up @@ -136,4 +143,5 @@ void F3DJFG_Init()
{
F3DDKR_Init();
GBI_SetGBI(G_DMA_VTX, F3DDKR_DMA_VTX, F3DJFG_DMA_Vtx);
GBI_SetGBI(G_DMA_TRI, F3DDKR_DMA_TRI, F3DJFG_DMA_Tri);
}

0 comments on commit b021d8e

Please sign in to comment.