summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorFelix Kuehling <fxkuehl@gmx.de>2005-01-22 00:52:31 +0000
committerFelix Kuehling <fxkuehl@gmx.de>2005-01-22 00:52:31 +0000
commitf4cafc8d13ed196388bfb27edeccdf3a67cec046 (patch)
treed7615dd3ca6c911ec1e633f332ee2ec571e646dd /src/mesa/drivers/dri
parent4ac53aed6c3f217d44e60b5004d3424b0e034e3e (diff)
Fixed polygon offset with reversed viewport depth range.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/savage/savage_xmesa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c
index c2eb8d10b1..9814288933 100644
--- a/src/mesa/drivers/dri/savage/savage_xmesa.c
+++ b/src/mesa/drivers/dri/savage/savage_xmesa.c
@@ -394,6 +394,9 @@ savageCreateContext( const __GLcontextModes *mesaVis,
ctx->Const.MaxLineWidthAA = 3.0;
ctx->Const.LineWidthGranularity = 1.0;
#endif
+ /* This is needed to get polygon offset right with reversed depth range
+ * (see savageCalcViewport). Not sure if it has any other side effects. */
+ ctx->MRD *= -1.0;
/* Dri stuff
*/