fix rcas now working with dlss

This commit is contained in:
cdozdil
2025-02-07 14:01:30 +03:00
parent 293e4260d4
commit 662ef6d00a
2 changed files with 2 additions and 8 deletions
@@ -67,12 +67,9 @@ bool DLSSFeatureDx12::Init(ID3D12Device* InDevice, ID3D12GraphicsCommandList* In
} while (false);
bool rcasEnabled = isVersionOrBetter(Version(), { 2, 5, 1 });
if (initResult)
{
if (Config::Instance()->RcasEnabled.value_or(rcasEnabled))
RCAS = std::make_unique<RCAS_Dx12>("RCAS", InDevice);
RCAS = std::make_unique<RCAS_Dx12>("RCAS", InDevice);
if (!Config::Instance()->OverlayMenu.value_or_default() && (Imgui == nullptr || Imgui.get() == nullptr))
Imgui = std::make_unique<Menu_Dx12>(Util::GetProcessWindow(), InDevice);
@@ -67,12 +67,9 @@ bool DLSSDFeatureDx12::Init(ID3D12Device* InDevice, ID3D12GraphicsCommandList* I
} while (false);
bool rcasEnabled = true;
if (initResult)
{
if (Config::Instance()->RcasEnabled.value_or(rcasEnabled))
RCAS = std::make_unique<RCAS_Dx12>("RCAS", InDevice);
RCAS = std::make_unique<RCAS_Dx12>("RCAS", InDevice);
if (!Config::Instance()->OverlayMenu.value_or_default() && (Imgui == nullptr || Imgui.get() == nullptr))
Imgui = std::make_unique<Menu_Dx12>(Util::GetProcessWindow(), InDevice);