mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
fixed some graphics problems with loading savestates (for example, wrong colors on title screen of metroid prime 3)
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user