mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-25 15:19:50 -06:00
Add support for custom line widths (#2406)
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user