From f6c3f1cdfdb9145634be3bfc54400f0d408f36dd Mon Sep 17 00:00:00 2001 From: riperiperi Date: Mon, 25 Sep 2023 22:07:03 +0100 Subject: GPU: Discard data when getting texture before full clear (#5719) * GPU: Discard data when getting texture before full clear * Fix rules and order of clear checks * Fix formatting --- src/Ryujinx.Graphics.Gpu/Window.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Ryujinx.Graphics.Gpu/Window.cs') diff --git a/src/Ryujinx.Graphics.Gpu/Window.cs b/src/Ryujinx.Graphics.Gpu/Window.cs index 1f94122d..3b236853 100644 --- a/src/Ryujinx.Graphics.Gpu/Window.cs +++ b/src/Ryujinx.Graphics.Gpu/Window.cs @@ -200,7 +200,7 @@ namespace Ryujinx.Graphics.Gpu { pt.AcquireCallback(_context, pt.UserObj); - Image.Texture texture = pt.Cache.FindOrCreateTexture(null, TextureSearchFlags.WithUpscale, pt.Info, 0, pt.Range); + Image.Texture texture = pt.Cache.FindOrCreateTexture(null, TextureSearchFlags.WithUpscale, pt.Info, 0, range: pt.Range); pt.Cache.Tick(); -- cgit v1.2.3