aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/polygon.c
diff options
context:
space:
mode:
authorGareth Hughes <[email protected]>2001-03-22 00:36:27 +0000
committerGareth Hughes <[email protected]>2001-03-22 00:36:27 +0000
commitd2733fa1963ddaa6dd4bb41ef488a029964dd8f1 (patch)
tree31f6aa5cf96241357a9e7d11c445738d4cf80739 /src/mesa/main/polygon.c
parent8ac1f97e9ecbd2f5ef9cda5d3c51411e0e36bb26 (diff)
Add PolygonOffset driver callback.
Diffstat (limited to 'src/mesa/main/polygon.c')
-rw-r--r--src/mesa/main/polygon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/polygon.c b/src/mesa/main/polygon.c
index 3126ff6087c..910b8a35933 100644
--- a/src/mesa/main/polygon.c
+++ b/src/mesa/main/polygon.c
@@ -1,4 +1,4 @@
-/* $Id: polygon.c,v 1.20 2001/03/12 00:48:38 gareth Exp $ */
+/* $Id: polygon.c,v 1.21 2001/03/22 00:36:27 gareth Exp $ */
/*
* Mesa 3-D graphics library
@@ -196,6 +196,9 @@ _mesa_PolygonOffset( GLfloat factor, GLfloat units )
ctx->Polygon.OffsetFactor = factor;
ctx->Polygon.OffsetUnits = units;
ctx->Polygon.OffsetMRD = units * ctx->MRD;
+
+ if (ctx->Driver.PolygonOffset)
+ ctx->Driver.PolygonOffset( ctx, factor, units );
}