diff options
author | mageven <62494521+mageven@users.noreply.github.com> | 2020-04-16 08:51:58 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 13:21:58 +1000 |
commit | dfecbbe1f46a10648c754aa5559f60661f2d1189 (patch) | |
tree | b283ab18eec3932644e75106cce07ce080178045 | |
parent | 6a94538b6df751400143eb6459688f525fd71ea6 (diff) |
Fix oversight in depth range initialization from PR #1093 (#1112)
-rw-r--r-- | Ryujinx.Graphics.Gpu/State/GpuState.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/State/GpuState.cs b/Ryujinx.Graphics.Gpu/State/GpuState.cs index 4b81029c..9e0e50a0 100644 --- a/Ryujinx.Graphics.Gpu/State/GpuState.cs +++ b/Ryujinx.Graphics.Gpu/State/GpuState.cs @@ -121,7 +121,7 @@ namespace Ryujinx.Graphics.Gpu.State _backingMemory[(int)MethodOffset.RasterizeEnable] = 1; // Depth ranges. - for (int index = 0; index < 8; index++) + for (int index = 0; index < Constants.TotalViewports; index++) { _backingMemory[(int)MethodOffset.ViewportExtents + index * 4 + 2] = 0; _backingMemory[(int)MethodOffset.ViewportExtents + index * 4 + 3] = 0x3F800000; |