This commit is contained in:
Marco Carvalho 2024-04-07 18:34:15 -03:00
parent 5313ad4ae1
commit 1947fd94da
2 changed files with 2 additions and 2 deletions

View file

@ -365,7 +365,7 @@ namespace Ryujinx.Graphics.OpenGL
_upscaledTexture = null;
break;
case ScalingFilter.Fsr:
if (_scalingFilter is not FsrScalingFilter)
if (_scalingFilter is null)
{
_scalingFilter?.Dispose();
_scalingFilter = new FsrScalingFilter(_renderer);

View file

@ -560,7 +560,7 @@ namespace Ryujinx.Graphics.Vulkan
_isLinear = _currentScalingFilter == ScalingFilter.Bilinear;
break;
case ScalingFilter.Fsr:
if (_scalingFilter is not FsrScalingFilter)
if (_scalingFilter is null)
{
_scalingFilter?.Dispose();
_scalingFilter = new FsrScalingFilter(_gd, _device);