steamcompmgr: Fix dynamic refresh crash if no focus window
This commit is contained in:
parent
e5c3a1e1da
commit
bf427b8156
1 changed files with 1 additions and 1 deletions
|
@ -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_t> commit )
|
||||
|
|
Loading…
Reference in a new issue