From f0ce39a132443e9a2adba25bd47b227e903766c4 Mon Sep 17 00:00:00 2001 From: Lyall Stamper Date: Tue, 3 Sep 2024 00:34:43 +0100 Subject: [PATCH] Change VSM tweak to only adjust CVAR if enabled in ini. #23 --- src/dllmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dllmain.cpp b/src/dllmain.cpp index f8241ac..fb0803f 100644 --- a/src/dllmain.cpp +++ b/src/dllmain.cpp @@ -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()); }