diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-04-22 03:00:11 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-22 16:00:11 +1000 |
| commit | 6bfe4715f05be10c73a788abd8727293a7eca77e (patch) | |
| tree | 2cb319f53b0c4b846352a9836772c3eff4b1db1d /Ryujinx.Graphics.Gpu/Engine/MethodClear.cs | |
| parent | c46edfab858051e4b800b2705df2c019c1d975cd (diff) | |
Initial conditional rendering support (#1012)
* Initial conditional rendering support
* Properly reset state
* Support conditional modes and skeleton a counter cache for future host conditional rendering
* Address PR feedback
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/MethodClear.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/MethodClear.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/MethodClear.cs b/Ryujinx.Graphics.Gpu/Engine/MethodClear.cs index ff538df3..a555015d 100644 --- a/Ryujinx.Graphics.Gpu/Engine/MethodClear.cs +++ b/Ryujinx.Graphics.Gpu/Engine/MethodClear.cs @@ -13,6 +13,11 @@ namespace Ryujinx.Graphics.Gpu.Engine /// <param name="argument">Method call argument</param> private void Clear(GpuState state, int argument) { + if (!GetRenderEnable(state)) + { + return; + } + // Scissor affects clears aswell. if (state.QueryModified(MethodOffset.ScissorState)) { |
