From c2ac45adc5e735f752c128990e022252a6e0a426 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Thu, 30 Apr 2020 02:47:24 +0100 Subject: Fix depth clamp enable bit, unit scale for polygon offset. (#1178) Verified with deko3d and opengl driver code. --- Ryujinx.Graphics.Gpu/Engine/Methods.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Ryujinx.Graphics.Gpu/Engine/Methods.cs') diff --git a/Ryujinx.Graphics.Gpu/Engine/Methods.cs b/Ryujinx.Graphics.Gpu/Engine/Methods.cs index ddb6e052..a517ae05 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Methods.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Methods.cs @@ -394,8 +394,7 @@ namespace Ryujinx.Graphics.Gpu.Engine private void UpdateDepthClampState(GpuState state) { ViewVolumeClipControl clip = state.Get(MethodOffset.ViewVolumeClipControl); - _context.Renderer.Pipeline.SetDepthClamp((clip & ViewVolumeClipControl.DepthClampNear) != 0, - (clip & ViewVolumeClipControl.DepthClampFar) != 0); + _context.Renderer.Pipeline.SetDepthClamp((clip & ViewVolumeClipControl.DepthClampDisabled) == 0); } /// -- cgit v1.2.3