last segment of AA stippled lines wasn't drawn

This commit is contained in:
Brian Paul 2001-01-29 23:38:41 +00:00
parent 326f9ddd8a
commit 426628c374

View file

@ -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 */