mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-29 21:13:14 +00:00
fixed crash because of nullptr
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user