Skip to content

Commit fdfb76d

Browse files
committed
Use generated createParams for on the fly upscaler changes
1 parent 30b158d commit fdfb76d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

OptiScaler/upscalers/FeatureProvider_Dx11.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ bool FeatureProvider_Dx11::ChangeFeature(std::string upscalerName, ID3D11Device*
160160

161161
contextData->feature.reset();
162162

163-
if (!GetFeature(State::Instance().newBackend, handleId, parameters, &contextData->feature))
163+
if (!GetFeature(State::Instance().newBackend, handleId, contextData->createParams, &contextData->feature))
164164
{
165165
LOG_ERROR("Upscaler can't created");
166166
return false;

OptiScaler/upscalers/FeatureProvider_Dx12.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ bool FeatureProvider_Dx12::ChangeFeature(std::string upscalerName, ID3D12Device*
166166

167167
contextData->feature.reset();
168168

169-
if (!GetFeature(State::Instance().newBackend, handleId, parameters, &contextData->feature))
169+
if (!GetFeature(State::Instance().newBackend, handleId, contextData->createParams, &contextData->feature))
170170
{
171171
LOG_ERROR("Upscaler can't created");
172172
return false;

OptiScaler/upscalers/FeatureProvider_Vk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ bool FeatureProvider_Vk::ChangeFeature(std::string upscalerName, VkInstance inst
147147

148148
contextData->feature.reset();
149149

150-
if (!GetFeature(State::Instance().newBackend, handleId, parameters, &contextData->feature))
150+
if (!GetFeature(State::Instance().newBackend, handleId, contextData->createParams, &contextData->feature))
151151
{
152152
LOG_ERROR("Upscaler can't created");
153153
return false;

0 commit comments

Comments
 (0)