Add support for custom line widths (#2406)
This commit is contained in:
parent
493648df31
commit
fefd4619a5
4 changed files with 36 additions and 1 deletions
|
@ -746,6 +746,20 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
}
|
||||
}
|
||||
|
||||
public void SetLineParameters(float width, bool smooth)
|
||||
{
|
||||
if (smooth)
|
||||
{
|
||||
GL.Enable(EnableCap.LineSmooth);
|
||||
}
|
||||
else
|
||||
{
|
||||
GL.Disable(EnableCap.LineSmooth);
|
||||
}
|
||||
|
||||
GL.LineWidth(width);
|
||||
}
|
||||
|
||||
public void SetPointParameters(float size, bool isProgramPointSize, bool enablePointSprite, Origin origin)
|
||||
{
|
||||
// GL_POINT_SPRITE was deprecated in core profile 3.2+ and causes GL_INVALID_ENUM when set.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue