1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-17 22:16:39 +00:00
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);