summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/unichrome/via_tris.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2004-12-30 16:30:26 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2004-12-30 16:30:26 +0000
commitc664f0c5155da800c34de1783754313e86654eda (patch)
tree2d8c7ab7452a987b432367191d1f5bd619f57189 /src/mesa/drivers/dri/unichrome/via_tris.c
parent8be4747fd642aef719f9ee55a42f05fe69a043eb (diff)
Calculate DEPTH_SCALE correctly for polygon offset.
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_tris.c')
-rw-r--r--src/mesa/drivers/dri/unichrome/via_tris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_tris.c b/src/mesa/drivers/dri/unichrome/via_tris.c
index 6dbbfe0343a..8c16d01000e 100644
--- a/src/mesa/drivers/dri/unichrome/via_tris.c
+++ b/src/mesa/drivers/dri/unichrome/via_tris.c
@@ -222,7 +222,7 @@ static struct {
} while (0)
-#define DEPTH_SCALE (1.0 / 0xffff)
+#define DEPTH_SCALE vmesa->polygon_offset_scale
#define UNFILLED_TRI unfilled_tri
#define UNFILLED_QUAD unfilled_quad
#define VERT_X(_v) _v->v.x