From 5561a3b95e9c980e3354366570e7896a213b95ae Mon Sep 17 00:00:00 2001
From: riperiperi <rhy3756547@hotmail.com>
Date: Sat, 7 Nov 2020 19:21:10 +0000
Subject: [PATCH] Synchronize Rasterizer State before Clear (#1680)

---
 Ryujinx.Graphics.Gpu/Engine/MethodClear.cs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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);