Use polygon offset clamp if supported (#1429)

This commit is contained in:
gdkchan 2020-07-26 18:11:28 -03:00 committed by GitHub
parent 8dbcae1ff8
commit 51fbc1fde4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 5 deletions

View file

@ -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)