diff options
author | Keith Whitwell <[email protected]> | 2001-01-08 04:09:41 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2001-01-08 04:09:41 +0000 |
commit | b980b2eeb62dc48101a7481d02d196c80b9da397 (patch) | |
tree | 2b9bf4b63b99a6df4e96123181da0a624289ad92 /src/mesa/main/lines.c | |
parent | 44d8de433e684cb4c2bc4dfc5cc6919af1f3cc55 (diff) |
Add a 'RenderPrimitive' callback to t_vb_render.c. Helps out drivers
that used to require a 'ReducedPrimitiveChange' callback.
Various compilation fixes for XFree86.
Reverted to the older version of glcore.h used internally in XFree86, and
moved it to 'Mesa/include/GL/internal/glcore.h', for compatibility with
XFree86.
Diffstat (limited to 'src/mesa/main/lines.c')
-rw-r--r-- | src/mesa/main/lines.c | 6 |
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; |