mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
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:
@ -294,7 +294,9 @@ void Shutdown()
|
|||||||
|
|
||||||
void DoState(unsigned char **ptr, int mode) {
|
void DoState(unsigned char **ptr, int mode) {
|
||||||
// Clear texture cache because it might have written to RAM
|
// Clear texture cache because it might have written to RAM
|
||||||
|
CommandProcessor::FifoCriticalEnter();
|
||||||
TextureCache::Invalidate(false);
|
TextureCache::Invalidate(false);
|
||||||
|
CommandProcessor::FifoCriticalLeave();
|
||||||
// No need to clear shader caches.
|
// No need to clear shader caches.
|
||||||
PointerWrap p(ptr, mode);
|
PointerWrap p(ptr, mode);
|
||||||
VideoCommon_DoState(p);
|
VideoCommon_DoState(p);
|
||||||
|
Reference in New Issue
Block a user