summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/MainBase.cpp
diff options
context:
space:
mode:
authornitsuja <nitsuja-@hotmail.com>2012-01-01 12:46:02 -0800
committerskidau <skidau@gmail.com>2012-05-26 13:18:07 +1000
commit2be579e8bad372e7a7433a7d6300939ecef4c654 (patch)
treeaf50bcb1d521ea3f9d3c1d18a1d049386188ae7f /Source/Core/VideoCommon/Src/MainBase.cpp
parent19b0b02ad75d9400cd69bfee3729f91662c2064b (diff)
fixed some graphics problems with loading savestates (for example, wrong colors on title screen of metroid prime 3)
Diffstat (limited to 'Source/Core/VideoCommon/Src/MainBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/MainBase.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Src/MainBase.cpp b/Source/Core/VideoCommon/Src/MainBase.cpp
index 85fbc3d8e9..4df2361ea9 100644
--- a/Source/Core/VideoCommon/Src/MainBase.cpp
+++ b/Source/Core/VideoCommon/Src/MainBase.cpp
@@ -185,10 +185,6 @@ void VideoBackendHardware::InitializeShared()
// Run from the CPU thread
void VideoBackendHardware::DoState(PointerWrap& p)
{
- // Clear all caches that touch RAM
- TextureCache::Invalidate(false);
- VertexLoaderManager::MarkAllDirty();
-
VideoCommon_DoState(p);
// Refresh state.
@@ -196,6 +192,11 @@ void VideoBackendHardware::DoState(PointerWrap& p)
{
BPReload();
RecomputeCachedArraybases();
+
+ // Clear all caches that touch RAM
+ // (? these don't appear to touch any emulation state that gets saved. moved to on load only.)
+ TextureCache::Invalidate(false);
+ VertexLoaderManager::MarkAllDirty();
}
}