Invalidate texture cache when loading dungeon maps (fixes #21)

This commit is contained in:
rozlette 2022-04-13 23:36:29 -05:00
commit 489c0eb4b7

View file

@ -2988,6 +2988,9 @@ void KaleidoScope_LoadDungeonMap(GlobalContext* globalCtx) {
memcpy(interfaceCtx->mapSegment, ResourceMgr_LoadTexByName(sDungeonMapTexs[R_MAP_TEX_INDEX]), 0x800);
memcpy(interfaceCtx->mapSegment + 0x800, ResourceMgr_LoadTexByName(sDungeonMapTexs[R_MAP_TEX_INDEX + 1]), 0x800);
gSPInvalidateTexCache(globalCtx->state.gfxCtx->polyKal.p++, interfaceCtx->mapSegment);
gSPInvalidateTexCache(globalCtx->state.gfxCtx->polyKal.p++, interfaceCtx->mapSegment + 0x800);
}
void KaleidoScope_UpdateDungeonMap(GlobalContext* globalCtx) {