mirror of https://github.com/mgba-emu/mgba.git
DS GX: Allow palette base to be adjusted in the middle of a polygon
This commit is contained in:
parent
823c720e1f
commit
69f21e1fb4
|
@ -1191,6 +1191,7 @@ static void _fifoRun(struct mTiming* timing, void* context, uint32_t cyclesLate)
|
||||||
gx->nextPoly.palBase |= entry.params[1] << 8;
|
gx->nextPoly.palBase |= entry.params[1] << 8;
|
||||||
gx->nextPoly.palBase |= entry.params[2] << 16;
|
gx->nextPoly.palBase |= entry.params[2] << 16;
|
||||||
gx->nextPoly.palBase |= entry.params[3] << 24;
|
gx->nextPoly.palBase |= entry.params[3] << 24;
|
||||||
|
gx->currentPoly.palBase = gx->nextPoly.palBase;
|
||||||
break;
|
break;
|
||||||
case DS_GX_CMD_BEGIN_VTXS:
|
case DS_GX_CMD_BEGIN_VTXS:
|
||||||
gx->vertexMode = entry.params[0] & 3;
|
gx->vertexMode = entry.params[0] & 3;
|
||||||
|
|
Loading…
Reference in New Issue