Преглед на файлове

Fix oversight in depth range initialization from PR #1093 (#1112)

mageven преди 6 години
родител
ревизия
dfecbbe1f4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Ryujinx.Graphics.Gpu/State/GpuState.cs

+ 1 - 1
Ryujinx.Graphics.Gpu/State/GpuState.cs

@@ -121,7 +121,7 @@ namespace Ryujinx.Graphics.Gpu.State
             _backingMemory[(int)MethodOffset.RasterizeEnable] = 1;
             _backingMemory[(int)MethodOffset.RasterizeEnable] = 1;
 
 
             // Depth ranges.
             // 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 + 2] = 0;
                 _backingMemory[(int)MethodOffset.ViewportExtents + index * 4 + 3] = 0x3F800000;
                 _backingMemory[(int)MethodOffset.ViewportExtents + index * 4 + 3] = 0x3F800000;