diff --git a/src/Ryujinx.Graphics.OpenGL/Window.cs b/src/Ryujinx.Graphics.OpenGL/Window.cs index a65b0accfd..ed8bf4d7a8 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 ce6504de28..e1a8cfe430 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);