diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-30 16:30:26 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-30 16:30:26 +0000 |
commit | c664f0c5155da800c34de1783754313e86654eda (patch) | |
tree | 2d8c7ab7452a987b432367191d1f5bd619f57189 /src/mesa/drivers/dri/unichrome/via_tris.c | |
parent | 8be4747fd642aef719f9ee55a42f05fe69a043eb (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.c | 2 |
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 6dbbfe0343..8c16d01000 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 |