Browse Source

Synchronize Rasterizer State before Clear (#1680)

riperiperi 5 years ago
parent
commit
5561a3b95e
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Ryujinx.Graphics.Gpu/Engine/MethodClear.cs

+ 6 - 1
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);