Fix renderer detection under Wine.

Use new timing checks to detect D3D being dependant on other APIs.
(Should work now regardless of platform, but GPU hardware detection may still be
needed...)
This commit is contained in:
redpolline 2024-12-31 09:09:59 -05:00
parent 32689355d0
commit 38cbfb3be9
3 changed files with 542 additions and 35 deletions

View file

@ -718,7 +718,7 @@ void Steam_Overlay::UnSetupOverlay()
{
ingame_overlay::StopRendererDetection();
if (!Ready() && future_renderer.valid()) {
if (future_renderer.wait_for(std::chrono::milliseconds{500}) == std::future_status::ready) {
if (future_renderer.wait_for(std::chrono::milliseconds{500} + std::chrono::seconds{MAX_RENDERER_API_DETECT_TIMEOUT}) == std::future_status::ready) {
future_renderer.get();
ingame_overlay::FreeDetector();
}