aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2021-10-12 22:12:17 +0100
committerGitHub <noreply@github.com>2021-10-12 23:12:17 +0200
commit0bce4a074a32099152ac65cb49b2a75051e3ba8b (patch)
treeaae795635368d95fe04fb1f32b013d2cde518b7c
parentd1604aa762a3f669a3fecff0a30b7360399954bc (diff)
Don't force scaling on 2D copy sources (#2701)
Some games (GameMaker Studio) build texture atlases out of sprites during initialization, using the 2D copy method. These copies are done from textures loaded into memory, not rendered, so they are not scaled to begin with. I had set srcTexture in these copies to force scaling, but really it only needs to scale if the texture already exists and was scaled by rendering or something else. I just set that to false, so it doesn't change if the texture is scaled or not. This will also avoid the destination being scaled if the source wasn't. The copy can handle mismatching scales just fine. This prevents scaling artifacts in GMS games, and maybe others (not Super Mario Maker 2, that has another issue).
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/Twod/TwodClass.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Twod/TwodClass.cs b/Ryujinx.Graphics.Gpu/Engine/Twod/TwodClass.cs
index 5077cb6a..be706556 100644
--- a/Ryujinx.Graphics.Gpu/Engine/Twod/TwodClass.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/Twod/TwodClass.cs
@@ -119,7 +119,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Twod
srcCopyTexture,
offset,
srcCopyTextureFormat,
- true,
+ false,
srcHint);
if (srcTexture == null)