mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-03 16:21:46 +00:00
fix rcas now working with dlss
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user