diff options
author | Brian Paul <[email protected]> | 2000-03-03 17:47:39 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-03-03 17:47:39 +0000 |
commit | ed30dfa1264ec8875a3162c3c8778bc703bf11d5 (patch) | |
tree | 41e44fc1f73964396c96dea1452f235b42ff46ec /src/mesa/main/polygon.c | |
parent | 8df3d8ae6c48cbbe649e8cfeebd8a99f983784f7 (diff) |
runtime selectable depth buffer depth
Diffstat (limited to 'src/mesa/main/polygon.c')
-rw-r--r-- | src/mesa/main/polygon.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/polygon.c b/src/mesa/main/polygon.c index 94a747c402d..b461ac2998f 100644 --- a/src/mesa/main/polygon.c +++ b/src/mesa/main/polygon.c @@ -1,4 +1,4 @@ -/* $Id: polygon.c,v 1.8 2000/02/27 20:38:15 keithw Exp $ */ +/* $Id: polygon.c,v 1.9 2000/03/03 17:47:39 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -188,6 +188,8 @@ _mesa_PolygonOffset( GLfloat factor, GLfloat units ) void _mesa_PolygonOffsetEXT( GLfloat factor, GLfloat bias ) { - _mesa_PolygonOffset(factor, bias * DEPTH_SCALE ); + GET_CURRENT_CONTEXT(ctx); + ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glPolygonOffsetEXT"); + _mesa_PolygonOffset(factor, bias * ctx->Visual->DepthMaxF ); } |