diff --git a/src/Ryujinx.Graphics.OpenGL/Window.cs b/src/Ryujinx.Graphics.OpenGL/Window.cs index a65b0accf..ed8bf4d7a 100644 --- a/src/Ryujinx.Graphics.OpenGL/Window.cs +++ b/src/Ryujinx.Graphics.OpenGL/Window.cs @@ -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); diff --git a/src/Ryujinx.Graphics.Vulkan/Window.cs b/src/Ryujinx.Graphics.Vulkan/Window.cs index ce6504de2..e1a8cfe43 100644 --- a/src/Ryujinx.Graphics.Vulkan/Window.cs +++ b/src/Ryujinx.Graphics.Vulkan/Window.cs @@ -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);