aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Engine
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2021-08-11 21:44:51 +0100
committerGitHub <noreply@github.com>2021-08-11 22:44:51 +0200
commit0a80a837cb30402cad1f41293134edbaeeec6451 (patch)
treea743795873cdda800d729630e16989c1ebb01ad3 /Ryujinx.Graphics.Gpu/Engine
parented754af8d5046d2fd7218c742521e38ab17cbcfe (diff)
Use "Undesired" scale mode for certain textures rather than blacklisting (#2537)
* Use "Undesired" scale mode for certain textures rather than blacklisting * Nit Co-authored-by: gdkchan <gab.dark.100@gmail.com> Co-authored-by: gdkchan <gab.dark.100@gmail.com>
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine')
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs b/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs
index fb4ab007..da412bdf 100644
--- a/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs
@@ -380,11 +380,16 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
if (changedScale)
{
+ float oldScale = _channel.TextureManager.RenderTargetScale;
_channel.TextureManager.UpdateRenderTargetScale(singleUse);
- _context.Renderer.Pipeline.SetRenderTargetScale(_channel.TextureManager.RenderTargetScale);
- UpdateViewportTransform();
- UpdateScissorState();
+ if (oldScale != _channel.TextureManager.RenderTargetScale)
+ {
+ _context.Renderer.Pipeline.SetRenderTargetScale(_channel.TextureManager.RenderTargetScale);
+
+ UpdateViewportTransform();
+ UpdateScissorState();
+ }
}
}