From 9bb52da9d3f77bcaa0b6e002d7eeec273f1e4914 Mon Sep 17 00:00:00 2001 From: cdozdil Date: Mon, 18 Mar 2024 18:12:41 +0300 Subject: [PATCH] dx11 backend selection fix --- CyberXeSS/NVNGX_DLSS_Dx11.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CyberXeSS/NVNGX_DLSS_Dx11.cpp b/CyberXeSS/NVNGX_DLSS_Dx11.cpp index c80c2a1e..a1875380 100644 --- a/CyberXeSS/NVNGX_DLSS_Dx11.cpp +++ b/CyberXeSS/NVNGX_DLSS_Dx11.cpp @@ -201,14 +201,14 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D11_CreateFeature(ID3D11DeviceContext // Create feature auto handleId = IFeature::GetNextHandleId(); - if (Config::Instance()->Dx11Upscaler.value_or("fsr22") == "fsr22") - Dx11Contexts[handleId] = std::make_unique(handleId, InParameters); + if (Config::Instance()->Dx11Upscaler.value_or("fsr22") == "xess") + Dx11Contexts[handleId] = std::make_unique(handleId, InParameters); else if (Config::Instance()->Dx11Upscaler.value_or("fsr22") == "fsr22_12") Dx11Contexts[handleId] = std::make_unique(handleId, InParameters); else if (Config::Instance()->Dx11Upscaler.value_or("fsr22") == "fsr21_12") Dx11Contexts[handleId] = std::make_unique(handleId, InParameters); else - Dx11Contexts[handleId] = std::make_unique(handleId, InParameters); + Dx11Contexts[handleId] = std::make_unique(handleId, InParameters); auto deviceContext = Dx11Contexts[handleId].get(); *OutHandle = deviceContext->Handle();