From 00a9a34aabd275d77d38252a2bb75ffbbb228244 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Thu, 20 Jun 2024 01:24:06 +0300 Subject: [PATCH] that was the reason for crashing on exit?! --- overlay_experimental/steam_overlay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index 31165fcf..d09af770 100644 --- a/overlay_experimental/steam_overlay.cpp +++ b/overlay_experimental/steam_overlay.cpp @@ -1841,6 +1841,9 @@ void Steam_Overlay::UnSetupOverlay() } } + // manually calling this dtor looks bad, but it actually prevents a lot of crashes on exit, don't remove it! + // many DX12 games will crash on exit if the hook wasn't manually removed (ex appid 2933080, 1583230) + _renderer->~RendererHook_t(); _renderer = nullptr; }