From 426628c374d043c5ae2bb73079aff577fc31c138 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 29 Jan 2001 23:38:41 +0000 Subject: last segment of AA stippled lines wasn't drawn --- src/mesa/swrast/s_aalinetemp.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mesa/swrast/s_aalinetemp.h b/src/mesa/swrast/s_aalinetemp.h index f36c1f433f..a98fbfd246 100644 --- a/src/mesa/swrast/s_aalinetemp.h +++ b/src/mesa/swrast/s_aalinetemp.h @@ -1,4 +1,4 @@ -/* $Id: s_aalinetemp.h,v 1.4 2001/01/05 02:26:48 keithw Exp $ */ +/* $Id: s_aalinetemp.h,v 1.5 2001/01/29 23:38:41 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -308,6 +308,11 @@ NAME(line)(GLcontext *ctx, const SWvertex *v0, const SWvertex *v1) } swrast->StippleCounter++; } + + if (inSegment) { + /* draw the final segment of the line */ + segment(ctx, &line, NAME(plot), pb, tStart, 1.0F); + } } else { /* non-stippled */ -- cgit v1.2.3