aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/lines.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2000-02-27 20:38:15 +0000
committerKeith Whitwell <[email protected]>2000-02-27 20:38:15 +0000
commite5ed37fa4ed1cf2323b50d96eafb1dc00c1d6d42 (patch)
treeccea6d290f1c90d3dc25f15c264393b6a98afeac /src/mesa/main/lines.c
parent3994b77bab8c62a4c1a4dffdfba233ef46662b99 (diff)
add callbacks for stipple
Diffstat (limited to 'src/mesa/main/lines.c')
-rw-r--r--src/mesa/main/lines.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/lines.c b/src/mesa/main/lines.c
index 52e9dca7d66..5d33946ce3f 100644
--- a/src/mesa/main/lines.c
+++ b/src/mesa/main/lines.c
@@ -1,4 +1,4 @@
-/* $Id: lines.c,v 1.7 2000/02/25 03:55:40 keithw Exp $ */
+/* $Id: lines.c,v 1.8 2000/02/27 20:38:15 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -71,6 +71,9 @@ _mesa_LineStipple( GLint factor, GLushort pattern )
ctx->Line.StippleFactor = CLAMP( factor, 1, 256 );
ctx->Line.StipplePattern = pattern;
ctx->NewState |= NEW_RASTER_OPS;
+
+ if (ctx->Driver.LineStipple)
+ ctx->Driver.LineStipple( ctx, factor, pattern );
}