summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/lines.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/lines.c')
-rw-r--r--src/mesa/main/lines.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/lines.c b/src/mesa/main/lines.c
index c54f108b237..730e3f572f9 100644
--- a/src/mesa/main/lines.c
+++ b/src/mesa/main/lines.c
@@ -1,4 +1,4 @@
-/* $Id: lines.c,v 1.24 2000/12/26 05:09:29 keithw Exp $ */
+/* $Id: lines.c,v 1.25 2001/01/08 04:09:41 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -57,6 +57,10 @@ _mesa_LineWidth( GLfloat width )
FLUSH_VERTICES(ctx, _NEW_LINE);
ctx->Line.Width = width;
+ ctx->Line._Width = CLAMP(width,
+ ctx->Const.MinLineWidth,
+ ctx->Const.MaxLineWidth);
+
if (width != 1.0)
ctx->_TriangleCaps |= DD_LINE_WIDTH;