aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-02-23 06:08:54 -0300
committerGitHub <noreply@github.com>2023-02-23 10:08:54 +0100
commit095ad923ad24c44e51ee6cee60edd50ee470fd71 (patch)
tree3cb443b5320519f91bc4e2cf3a622a45fcf608b8
parentf07ae7d53f511af38d9735c8a0aecc1cce6dc12b (diff)
Account for multisample when calculating render target size hint (#4467)1.1.637
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs b/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs
index ecfd763f6..d7d197adb 100644
--- a/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs
@@ -439,7 +439,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
439 int samplesInY = msaaMode.SamplesInY(); 439 int samplesInY = msaaMode.SamplesInY();
440 440
441 var scissor = _state.State.ScreenScissorState; 441 var scissor = _state.State.ScreenScissorState;
442 Size sizeHint = new Size(scissor.X + scissor.Width, scissor.Y + scissor.Height, 1); 442 Size sizeHint = new Size((scissor.X + scissor.Width) * samplesInX, (scissor.Y + scissor.Height) * samplesInY, 1);
443 443
444 int clipRegionWidth = int.MaxValue; 444 int clipRegionWidth = int.MaxValue;
445 int clipRegionHeight = int.MaxValue; 445 int clipRegionHeight = int.MaxValue;