From bf427b815672bd3052d6c6fd954100eed6c10e47 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 9 Feb 2022 02:45:12 +0000 Subject: [PATCH] steamcompmgr: Fix dynamic refresh crash if no focus window --- src/steamcompmgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index c13387f..7f6e078 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -237,7 +237,7 @@ static const uint64_t g_uDynamicRefreshDelay = 600'000'000; // 600ms bool steamcompmgr_window_should_limit_fps( win *w ) { - return g_nSteamCompMgrTargetFPS != 0 && !w->isSteam && w->appID != 769 && !w->isOverlay && !w->isExternalOverlay; + return g_nSteamCompMgrTargetFPS != 0 && w && !w->isSteam && w->appID != 769 && !w->isOverlay && !w->isExternalOverlay; } void steamcompmgr_fpslimit_add_commit( std::shared_ptr commit )