From 1947fd94daa0d7dc001edcc7733e4f122101505f Mon Sep 17 00:00:00 2001 From: Marco Carvalho Date: Sun, 7 Apr 2024 18:34:15 -0300 Subject: [PATCH] fix --- src/Ryujinx.Graphics.OpenGL/Window.cs | 2 +- src/Ryujinx.Graphics.Vulkan/Window.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);