From e3d0ccf8d5226189fa93741a2c63787b76defea6 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Sun, 22 Jan 2023 02:03:30 +0000 Subject: Allow setting texture data from 1x to fix some textures resetting randomly (#2860) * Allow setting texture data from 1x to fix some textures resetting randomly Expected targets: - Deltarune 1+2 - Crash Team Racing - Those new pokemon games idk * Allow scaling of MSAA textures, propagate scale on copy. * Fix Rebase Oops * Automatic disable * A bit more aggressive * Without the debug log * Actually decrement the score when writing. --- Ryujinx.Graphics.Gpu/Engine/Twod/TwodClass.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Ryujinx.Graphics.Gpu/Engine') diff --git a/Ryujinx.Graphics.Gpu/Engine/Twod/TwodClass.cs b/Ryujinx.Graphics.Gpu/Engine/Twod/TwodClass.cs index d2b6bec3..4ce53e78 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Twod/TwodClass.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Twod/TwodClass.cs @@ -349,6 +349,11 @@ namespace Ryujinx.Graphics.Gpu.Engine.Twod return; } + if (srcTexture.Info.Samples > 1 || dstTexture.Info.Samples > 1) + { + srcTexture.PropagateScale(dstTexture); + } + float scale = srcTexture.ScaleFactor; float dstScale = dstTexture.ScaleFactor; -- cgit v1.2.3