Use polygon offset clamp if supported (#1429)
This commit is contained in:
parent
8dbcae1ff8
commit
51fbc1fde4
3 changed files with 12 additions and 5 deletions
|
@ -568,7 +568,7 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
|||
enables |= (depthBias.LineEnable ? PolygonModeMask.Line : 0);
|
||||
enables |= (depthBias.FillEnable ? PolygonModeMask.Fill : 0);
|
||||
|
||||
_context.Renderer.Pipeline.SetDepthBias(enables, factor, units, clamp);
|
||||
_context.Renderer.Pipeline.SetDepthBias(enables, factor, units / 2f, clamp);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -697,7 +697,7 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
|||
float size = state.Get<float>(MethodOffset.PointSize);
|
||||
bool isProgramPointSize = state.Get<Boolean32>(MethodOffset.VertexProgramPointSize);
|
||||
bool enablePointSprite = state.Get<Boolean32>(MethodOffset.PointSpriteEnable);
|
||||
|
||||
|
||||
// TODO: Need to figure out a way to map PointCoordReplace enable bit.
|
||||
Origin origin = (state.Get<int>(MethodOffset.PointCoordReplace) & 4) == 0 ? Origin.LowerLeft : Origin.UpperLeft;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue