mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-17 22:25:37 +00:00
Frontend: Fix occasional power-off crash
This commit is contained in:
parent
ed6d0e34de
commit
2b137190c8
|
@ -1163,11 +1163,12 @@ void SDLInterface::Run()
|
|||
}
|
||||
|
||||
if (m_system)
|
||||
{
|
||||
m_system->RunFrame();
|
||||
|
||||
Render();
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue