Fix depth clamp enable bit, unit scale for polygon offset. (#1178)

Verified with deko3d and opengl driver code.
This commit is contained in:
riperiperi 2020-04-30 02:47:24 +01:00 committed by GitHub
parent ec620e2de0
commit c2ac45adc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 11 deletions

View file

@ -394,8 +394,7 @@ namespace Ryujinx.Graphics.Gpu.Engine
private void UpdateDepthClampState(GpuState state)
{
ViewVolumeClipControl clip = state.Get<ViewVolumeClipControl>(MethodOffset.ViewVolumeClipControl);
_context.Renderer.Pipeline.SetDepthClamp((clip & ViewVolumeClipControl.DepthClampNear) != 0,
(clip & ViewVolumeClipControl.DepthClampFar) != 0);
_context.Renderer.Pipeline.SetDepthClamp((clip & ViewVolumeClipControl.DepthClampDisabled) == 0);
}
/// <summary>