diff options
author | Brian <[email protected]> | 2007-07-11 16:19:51 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-07-11 16:20:32 -0600 |
commit | b755a2d9de5b7977c410a904a8adb7c07c88f82a (patch) | |
tree | dcbc39ef901b21260d948606be5549bab6aea5ba /src/mesa/main/framebuffer.c | |
parent | 34f6243beff6a66a76814638db68897eb719dd30 (diff) |
Minor clean-up of polygon offset logic. Properly compute _MRD field.
Diffstat (limited to 'src/mesa/main/framebuffer.c')
-rw-r--r-- | src/mesa/main/framebuffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 1fd31a53211..dc10d9ffbc8 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -65,7 +65,9 @@ compute_depth_max(struct gl_framebuffer *fb) fb->_DepthMax = 0xffffffff; } fb->_DepthMaxF = (GLfloat) fb->_DepthMax; - fb->_MRD = 1.0; /* Minimum resolvable depth value, for polygon offset */ + + /* Minimum resolvable depth value, for polygon offset */ + fb->_MRD = 1.0 / fb->_DepthMaxF; } |