VRAM dirty tracking fix reset/savestate load

This commit is contained in:
RSDuck
2020-12-09 20:10:44 +01:00
parent 51b2671aa9
commit b6de3cc638
2 changed files with 10 additions and 1 deletions

View File

@ -93,7 +93,12 @@ struct VRAMTrackingSet
void Reset()
{
memset(Mapping, 0, sizeof(Mapping));
for (int i = 0; i < Size / MappingGranularity; i++)
{
// this is not a real VRAM bank
// so it will always be a mismatch => the bank will be completely invalidated
Mapping[i] = 0x8000;
}
}
NonStupidBitField<Size/VRAMDirtyGranularity> DeriveState(u32* currentMappings);
};