Fix overlay getting stuck if stopped to quickly after being started.

This commit is contained in:
Mr_Goldberg 2022-08-16 12:32:28 -04:00
parent bc4262a494
commit 077e532bd2
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
3 changed files with 25 additions and 6 deletions

View file

@ -207,6 +207,7 @@ void Steam_Overlay::UnSetupOverlay()
if (!Ready() && future_renderer.valid()) {
if (future_renderer.wait_for(std::chrono::milliseconds{500}) == std::future_status::ready) {
future_renderer.get();
ingame_overlay::FreeRendererDetection();
}
}
}