Skip to content

Commit

Permalink
Change VSM tweak to only adjust CVAR if enabled in ini. #23
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyall committed Sep 2, 2024
1 parent c3b7009 commit f0ce39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void SetCVARs()
}

// r.Shadow.Virtual.Enable
if (cvarVSMEnable && (cvarVSMEnable->GetInt() != (int)bVirtualShadowmaps)) {
if (cvarVSMEnable && bVirtualShadowmaps && (cvarVSMEnable->GetInt() != 1)) {
cvarVSMEnable->Set(std::to_wstring(bVirtualShadowmaps).c_str());
spdlog::info("CVar: r.Shadow.Virtual.Enable: Set to {}", cvarVSMEnable->GetInt());
}
Expand Down

0 comments on commit f0ce39a

Please sign in to comment.