summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl_dd/t_dd_tritmp.h
diff options
context:
space:
mode:
authorJulien Cristau <[email protected]>2008-07-13 19:20:03 +0200
committerJulien Cristau <[email protected]>2008-07-13 19:20:03 +0200
commit64e57ed257c559ea31cf162c67a7ef61fdc562e4 (patch)
treedee99970e9d1e6d892f21db31488470bc7929d18 /src/mesa/tnl_dd/t_dd_tritmp.h
parentdabd09f5a92e5497ac6ac9b4ba26f806ddb25206 (diff)
parent4fab47b13c214dc79e0ae5d8001521029ce34231 (diff)
Merge branch 'master' of git://anongit.freedesktop.org/git/mesa/mesa into debian-experimental
Conflicts: progs/tests/antialias.c progs/tools/trace/Makefile
Diffstat (limited to 'src/mesa/tnl_dd/t_dd_tritmp.h')
-rw-r--r--src/mesa/tnl_dd/t_dd_tritmp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/tnl_dd/t_dd_tritmp.h b/src/mesa/tnl_dd/t_dd_tritmp.h
index 2bb890593b1..1ae70f4059f 100644
--- a/src/mesa/tnl_dd/t_dd_tritmp.h
+++ b/src/mesa/tnl_dd/t_dd_tritmp.h
@@ -267,7 +267,7 @@ static void TAG(triangle)( GLcontext *ctx, GLuint e0, GLuint e1, GLuint e2 )
GLfloat bc = b * ic;
if ( ac < 0.0f ) ac = -ac;
if ( bc < 0.0f ) bc = -bc;
- offset += MAX2( ac, bc ) * ctx->Polygon.OffsetFactor;
+ offset += MAX2( ac, bc ) * ctx->Polygon.OffsetFactor / ctx->DrawBuffer->_MRD;
}
offset *= ctx->DrawBuffer->_MRD * (REVERSE_DEPTH ? -1.0 : 1.0);
}
@@ -539,7 +539,7 @@ static void TAG(quadr)( GLcontext *ctx,
GLfloat bc = b * ic;
if ( ac < 0.0f ) ac = -ac;
if ( bc < 0.0f ) bc = -bc;
- offset += MAX2( ac, bc ) * ctx->Polygon.OffsetFactor;
+ offset += MAX2( ac, bc ) * ctx->Polygon.OffsetFactor / ctx->DrawBuffer->_MRD;
}
offset *= ctx->DrawBuffer->_MRD * (REVERSE_DEPTH ? -1.0 : 1.0);
}