DS GX: Mask off invalid bits of the palette base

This commit is contained in:
Vicki Pfau 2020-07-22 12:14:14 -07:00
parent 8d8f314864
commit b3c831a3aa
2 changed files with 2 additions and 2 deletions

View File

@ -18,6 +18,7 @@ Bugfixes:
- DS: Fix leaking BIOS and firmware filehandles
- DS: Fix freeing memory for partial BIOS on load failure
- DS Video: Properly deinitialize
- DS GX: Mask off invalid bits of the palette base
Misc:
- DS GX: Clean up and unify texture mapping
- DS Core: Add symbol loading

View File

@ -1206,8 +1206,7 @@ static void _fifoRun(struct mTiming* timing, void* context, uint32_t cyclesLate)
case DS_GX_CMD_PLTT_BASE:
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->nextPoly.palBase &= 0x00001FFF;
gx->currentPoly.palBase = gx->nextPoly.palBase;
break;
case DS_GX_CMD_BEGIN_VTXS: