fixed crash because of nullptr

This commit is contained in:
cdozdil
2024-07-25 22:09:38 +03:00
parent 38a59b0ea6
commit 85801520d2
+2
View File
@@ -563,6 +563,8 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D12_CreateFeature(ID3D12GraphicsComma
if (Config::Instance()->Dx12Upscaler.has_value())
{
spdlog::info("NVSDK_NGX_D3D12_CreateFeature DLSS Enabler does not set any upscaler using ini: {0}", Config::Instance()->Dx12Upscaler.value());
if (Config::Instance()->Dx12Upscaler.value() == "xess")
upscalerChoice = 0;
else if (Config::Instance()->Dx12Upscaler.value() == "fsr22")