mirror of https://github.com/mgba-emu/mgba.git
DS GX: Mask off invalid bits of the palette base
This commit is contained in:
parent
8d8f314864
commit
b3c831a3aa
1
CHANGES
1
CHANGES
|
@ -18,6 +18,7 @@ Bugfixes:
|
||||||
- DS: Fix leaking BIOS and firmware filehandles
|
- DS: Fix leaking BIOS and firmware filehandles
|
||||||
- DS: Fix freeing memory for partial BIOS on load failure
|
- DS: Fix freeing memory for partial BIOS on load failure
|
||||||
- DS Video: Properly deinitialize
|
- DS Video: Properly deinitialize
|
||||||
|
- DS GX: Mask off invalid bits of the palette base
|
||||||
Misc:
|
Misc:
|
||||||
- DS GX: Clean up and unify texture mapping
|
- DS GX: Clean up and unify texture mapping
|
||||||
- DS Core: Add symbol loading
|
- DS Core: Add symbol loading
|
||||||
|
|
|
@ -1206,8 +1206,7 @@ static void _fifoRun(struct mTiming* timing, void* context, uint32_t cyclesLate)
|
||||||
case DS_GX_CMD_PLTT_BASE:
|
case DS_GX_CMD_PLTT_BASE:
|
||||||
gx->nextPoly.palBase = entry.params[0];
|
gx->nextPoly.palBase = entry.params[0];
|
||||||
gx->nextPoly.palBase |= entry.params[1] << 8;
|
gx->nextPoly.palBase |= entry.params[1] << 8;
|
||||||
gx->nextPoly.palBase |= entry.params[2] << 16;
|
gx->nextPoly.palBase &= 0x00001FFF;
|
||||||
gx->nextPoly.palBase |= entry.params[3] << 24;
|
|
||||||
gx->currentPoly.palBase = gx->nextPoly.palBase;
|
gx->currentPoly.palBase = gx->nextPoly.palBase;
|
||||||
break;
|
break;
|
||||||
case DS_GX_CMD_BEGIN_VTXS:
|
case DS_GX_CMD_BEGIN_VTXS:
|
||||||
|
|
Loading…
Reference in New Issue