Frontend: Fix occasional power-off crash

This commit is contained in:
Connor McLaughlin 2019-10-26 13:33:02 +10:00
parent ed6d0e34de
commit 2b137190c8

View file

@ -1163,11 +1163,12 @@ void SDLInterface::Run()
}
if (m_system)
{
m_system->RunFrame();
Render();
if (m_system)
{
// update fps counter
const double time = m_fps_timer.GetTimeSeconds();
if (time >= 0.25f)
@ -1185,9 +1186,5 @@ void SDLInterface::Run()
m_fps_timer.Reset();
}
}
else
{
Render();
}
}
}