libretro: Work around crash in RetroArch Vulkan driver

This commit is contained in:
Connor McLaughlin
2020-11-25 23:06:39 +10:00
parent 917fa5dd0e
commit b45bee5954
7 changed files with 34 additions and 25 deletions

View File

@ -112,7 +112,7 @@ void GPU::SoftReset()
UpdateCommandTickEvent();
}
bool GPU::DoState(StateWrapper& sw)
bool GPU::DoState(StateWrapper& sw, bool update_display)
{
if (sw.IsReading())
{
@ -225,7 +225,9 @@ bool GPU::DoState(StateWrapper& sw)
m_GPUSTAT.bits = old_GPUSTAT;
UpdateCRTCConfig();
UpdateDisplay();
if (update_display)
UpdateDisplay();
UpdateCRTCTickEvent();
UpdateCommandTickEvent();
}