Bugzilla #755: Fix polygon offset by setting DEPTH_SCALE to depth_scale instead
authorEric Anholt <anholt@FreeBSD.org>
Sun, 4 Jul 2004 20:49:04 +0000 (20:49 +0000)
committerEric Anholt <anholt@FreeBSD.org>
Sun, 4 Jul 2004 20:49:04 +0000 (20:49 +0000)
of 1.0.

src/mesa/drivers/dri/r128/r128_tris.c

index d3dfb3b1174e50d82296908632a1c3ab352ec0a1..57ed56d535ce9b5e4f9afb5afef272add8f8df57 100644 (file)
@@ -224,7 +224,7 @@ static struct {
 #define VERTEX r128Vertex
 #define TAB rast_tab
 
-#define DEPTH_SCALE 1.0
+#define DEPTH_SCALE rmesa->depth_scale
 #define UNFILLED_TRI unfilled_tri
 #define UNFILLED_QUAD unfilled_quad
 #define VERT_X(_v) _v->v.x