diff --git a/OptiScaler/framegen/xefg/XeFG_Dx12.cpp b/OptiScaler/framegen/xefg/XeFG_Dx12.cpp index 2620b2ca..1aa682ac 100644 --- a/OptiScaler/framegen/xefg/XeFG_Dx12.cpp +++ b/OptiScaler/framegen/xefg/XeFG_Dx12.cpp @@ -341,7 +341,7 @@ bool XeFG_Dx12::CreateSwapchain(IDXGIFactory* factory, ID3D12CommandQueue* cmdQu // For old libxess_fg versions we use max to control interpolation count if (XeFGProxy::SetNumInterpolatedFrames() == nullptr) - intTarget = Config::Instance()->FGXeFGInterpolationCount.value_or(State::Instance().xefgMaxInterpolationCount); + intTarget = Config::Instance()->FGXeFGInterpolationCount.value_or_default(); if (intTarget < 1 || intTarget > State::Instance().xefgMaxInterpolationCount) { @@ -500,7 +500,7 @@ bool XeFG_Dx12::CreateSwapchain1(IDXGIFactory* factory, ID3D12CommandQueue* cmdQ // For old libxess_fg versions we use max to control interpolation count if (XeFGProxy::SetNumInterpolatedFrames() == nullptr) - intTarget = Config::Instance()->FGXeFGInterpolationCount.value_or(State::Instance().xefgMaxInterpolationCount); + intTarget = Config::Instance()->FGXeFGInterpolationCount.value_or_default(); if (intTarget < 1 || intTarget > State::Instance().xefgMaxInterpolationCount) {