projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ac53ae
)
Fixed polygon offset with reversed viewport depth range.
author
Felix Kuehling
<fxkuehl@gmx.de>
Sat, 22 Jan 2005 00:52:31 +0000
(
00:52
+0000)
committer
Felix Kuehling
<fxkuehl@gmx.de>
Sat, 22 Jan 2005 00:52:31 +0000
(
00:52
+0000)
src/mesa/drivers/dri/savage/savage_xmesa.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/savage/savage_xmesa.c
b/src/mesa/drivers/dri/savage/savage_xmesa.c
index c2eb8d10b17145f7328a95039ade8c51dd363a47..98142889339b5c702f549b16bad5f8e130745b65 100644
(file)
--- 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
*/