mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 21:03:42 -07:00
Invalidate texture cache when loading dungeon maps (fixes #21)
This commit is contained in:
parent
e164819339
commit
489c0eb4b7
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue