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; _upscaledTexture = null;
break; break;
case ScalingFilter.Fsr: case ScalingFilter.Fsr:
if (_scalingFilter is not FsrScalingFilter) if (_scalingFilter is null)
{ {
_scalingFilter?.Dispose(); _scalingFilter?.Dispose();
_scalingFilter = new FsrScalingFilter(_renderer); _scalingFilter = new FsrScalingFilter(_renderer);

View file

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