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
|
@ -610,9 +610,14 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
return;
|
||||
}
|
||||
|
||||
GL.PolygonOffset(factor, units / 2f);
|
||||
// TODO: Enable when GL_EXT_polygon_offset_clamp is supported.
|
||||
// GL.PolygonOffsetClamp(factor, units, clamp);
|
||||
if (HwCapabilities.SupportsPolygonOffsetClamp)
|
||||
{
|
||||
GL.PolygonOffsetClamp(factor, units, clamp);
|
||||
}
|
||||
else
|
||||
{
|
||||
GL.PolygonOffset(factor, units);
|
||||
}
|
||||
}
|
||||
|
||||
public void SetDepthClamp(bool clamp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue