aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2020-11-07 19:21:10 +0000
committerGitHub <noreply@github.com>2020-11-07 16:21:10 -0300
commit5561a3b95e9c980e3354366570e7896a213b95ae (patch)
tree8269ff066eaf22b98220555f91ea8bad81215cac
parent500b48251c1296a7645a44dc26248f36733f5ad8 (diff)
Synchronize Rasterizer State before Clear (#1680)
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/MethodClear.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/MethodClear.cs b/Ryujinx.Graphics.Gpu/Engine/MethodClear.cs
index 82c4a990..ea33304a 100644
--- a/Ryujinx.Graphics.Gpu/Engine/MethodClear.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/MethodClear.cs
@@ -20,12 +20,17 @@ namespace Ryujinx.Graphics.Gpu.Engine
return;
}
- // Scissor affects clears aswell.
+ // Scissor and rasterizer discard also affect clears.
if (state.QueryModified(MethodOffset.ScissorState))
{
UpdateScissorState(state);
}
+ if (state.QueryModified(MethodOffset.RasterizeEnable))
+ {
+ UpdateRasterizerState(state);
+ }
+
int index = (argument >> 6) & 0xf;
UpdateRenderTargetState(state, useControl: false, singleUse: index);