all repos — mgba @ 69f21e1fb401078ebdd2a27a6575339ef6f60f1f

mGBA Game Boy Advance Emulator

DS GX: Allow palette base to be adjusted in the middle of a polygon
Vicki Pfau vi@endrift.com
Thu, 23 Mar 2017 21:01:20 -0700
commit

69f21e1fb401078ebdd2a27a6575339ef6f60f1f

parent

823c720e1fec2adaf449ba1eb7daaaccf0c25b59

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/ds/gx.csrc/ds/gx.c

@@ -1191,6 +1191,7 @@ gx->nextPoly.palBase = entry.params[0];

gx->nextPoly.palBase |= entry.params[1] << 8; gx->nextPoly.palBase |= entry.params[2] << 16; gx->nextPoly.palBase |= entry.params[3] << 24; + gx->currentPoly.palBase = gx->nextPoly.palBase; break; case DS_GX_CMD_BEGIN_VTXS: gx->vertexMode = entry.params[0] & 3;