last segment of AA stippled lines wasn't drawn
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 29 Jan 2001 23:38:41 +0000 (23:38 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 29 Jan 2001 23:38:41 +0000 (23:38 +0000)
src/mesa/swrast/s_aalinetemp.h

index f36c1f433fe8bfabfa6752d814447a60cbb8a90f..a98fbfd246caecd5ec430251b962c0e504219ff1 100644 (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 */