dx9 savestate crash fix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5380 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nitsuja- 2010-04-17 20:14:38 +00:00
parent 0a12b9d9f5
commit fadbe78a59
1 changed files with 2 additions and 0 deletions

View File

@ -294,7 +294,9 @@ void Shutdown()
void DoState(unsigned char **ptr, int mode) {
// Clear texture cache because it might have written to RAM
CommandProcessor::FifoCriticalEnter();
TextureCache::Invalidate(false);
CommandProcessor::FifoCriticalLeave();
// No need to clear shader caches.
PointerWrap p(ptr, mode);
VideoCommon_DoState(p);