aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-11-21 14:16:00 -0300
committerGitHub <noreply@github.com>2022-11-21 18:16:00 +0100
commitf088c3d3449f2fafce0c38ee9a0a2b9e4b83179e (patch)
treec267bde2d7809e359b8dcb34295418ece1ddd7a5
parent905a191e28fd9262d0fde97f3c2d100f74693c8d (diff)
Do not update shader state for DrawTextures (#3876)1.1.369
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/Threed/DrawManager.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Threed/DrawManager.cs b/Ryujinx.Graphics.Gpu/Engine/Threed/DrawManager.cs
index a7acb469..ed8ed206 100644
--- a/Ryujinx.Graphics.Gpu/Engine/Threed/DrawManager.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/Threed/DrawManager.cs
@@ -372,7 +372,9 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
float srcX1 = ((float)_state.State.DrawTextureDuDx / (1UL << 32)) * dstWidth + srcX0;
float srcY1 = ((float)_state.State.DrawTextureDvDy / (1UL << 32)) * dstHeight + srcY0;
- engine.UpdateState();
+ engine.UpdateState(ulong.MaxValue & ~(1UL << StateUpdater.ShaderStateIndex));
+
+ _channel.TextureManager.UpdateRenderTargets();
int textureId = _state.State.DrawTextureTextureId;
int samplerId = _state.State.DrawTextureSamplerId;