aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Pipeline.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Pipeline.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Pipeline.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Pipeline.cs b/Ryujinx.Graphics.OpenGL/Pipeline.cs
index a651dc75..948a8b89 100644
--- a/Ryujinx.Graphics.OpenGL/Pipeline.cs
+++ b/Ryujinx.Graphics.OpenGL/Pipeline.cs
@@ -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.