aboutsummaryrefslogtreecommitdiff
path: root/src/GPU.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/GPU.h')
-rw-r--r--src/GPU.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/GPU.h b/src/GPU.h
index 2f71da6..cc62e1e 100644
--- a/src/GPU.h
+++ b/src/GPU.h
@@ -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);
};