aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Pipeline.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2021-06-25 20:11:54 -0300
committerGitHub <noreply@github.com>2021-06-25 20:11:54 -0300
commitfefd4619a5347b4ef86314a4e17e1d6e63ced297 (patch)
tree52561237c2c4abf60f9e6918f26d396552c42168 /Ryujinx.Graphics.OpenGL/Pipeline.cs
parent493648df312b7501b0560a3c94b2deffab2e99cf (diff)
Add support for custom line widths (#2406)
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.