Add workaround for d3d11 backend savestate loading problems.

Update patches as well.
This commit is contained in:
LunaMoo committed 2017-11-09 02:19:19 +01:00
1 parent b644c98f24
commit 4517db73d9
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -44,6 +44,7 @@
#include "Core/MIPS/MIPS.h"
#include "Core/MIPS/JitCommon/JitBlockCache.h"
#include "HW/MemoryStick.h"
#include "GPU/GPUInterface.h"
#include "GPU/GPUState.h"
namespace SaveState
@@ -591,6 +592,10 @@ namespace SaveState
callbackMessage = sc->T("Loaded State");
callbackResult = true;
hasLoadedState = true;
if (gpu) {
// Workaround for d3d11 load state glitches
gpu->ClearCacheNextFrame();
}
} else if (result == CChunkFileReader::ERROR_BROKEN_STATE) {
HandleFailure();
callbackMessage = i18nLoadFailure;