Skip to content

Commit

Permalink
Engine: in render_to_screen() do at least 1 delay in case of DEVICELOST
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Oct 31, 2022
1 parent 126a5e4 commit 27306da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Engine/ac/draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -931,11 +931,11 @@ void render_to_screen()
catch (Ali3DFullscreenLostException e)
{
Debug::Printf("Renderer exception: %s", e.Message.GetCStr());
while (game_update_suspend && (!want_exit) && (!abort_engine))
do
{
sys_evt_process_pending();
platform->Delay(300);
}
} while (game_update_suspend && (!want_exit) && (!abort_engine));
}
}
}
Expand Down

0 comments on commit 27306da

Please sign in to comment.