DS GX: Reset polygon parameters after a swap

This commit is contained in:
Vicki Pfau 2017-03-06 14:20:19 -08:00
parent c521297093
commit 476a4767a3
1 changed files with 4 additions and 0 deletions

View File

@ -924,6 +924,9 @@ static void _fifoRun(struct mTiming* timing, void* context, uint32_t cyclesLate)
case DS_GX_CMD_SWAP_BUFFERS:
gx->swapBuffers = true;
gx->wSort = entry.params[0] & 2;
memset(&gx->currentVertex, 0, sizeof(gx->currentVertex));
memset(&gx->nextPoly, 0, sizeof(gx-> nextPoly));
gx->currentVertex.color = 0x7FFF;
break;
case DS_GX_CMD_VIEWPORT:
gx->viewportX1 = (uint8_t) entry.params[0];
@ -1294,6 +1297,7 @@ static void DSGXDummyRendererSetRAM(struct DSGXRenderer* renderer, struct DSGXVe
UNUSED(verts);
UNUSED(polys);
UNUSED(polyCount);
UNUSED(wSort);
// Nothing to do
}