From 00ceab2c91fc9cc5e4f0ae8c8ff682c0ea723423 Mon Sep 17 00:00:00 2001 From: Marco Carvalho Date: Sun, 7 Apr 2024 20:26:02 -0300 Subject: [PATCH] Update Window.cs --- src/Ryujinx.Graphics.OpenGL/Window.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Ryujinx.Graphics.OpenGL/Window.cs b/src/Ryujinx.Graphics.OpenGL/Window.cs index ed8bf4d7a8..9b61cc6943 100644 --- a/src/Ryujinx.Graphics.OpenGL/Window.cs +++ b/src/Ryujinx.Graphics.OpenGL/Window.cs @@ -365,11 +365,7 @@ namespace Ryujinx.Graphics.OpenGL _upscaledTexture = null; break; case ScalingFilter.Fsr: - if (_scalingFilter is null) - { - _scalingFilter?.Dispose(); - _scalingFilter = new FsrScalingFilter(_renderer); - } + _scalingFilter ??= new FsrScalingFilter(_renderer); _isLinear = false; _scalingFilter.Level = _scalingFilterLevel;