mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 08:50:28 +01:00
Fixed polygon offset with reversed viewport depth range.
This commit is contained in:
parent
4ac53aed6c
commit
f4cafc8d13
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue