commit | b755a2d9de5b7977c410a904a8adb7c07c88f82a | [log] [tgz] |
---|---|---|
author | Brian <brian.paul@tungstengraphics.com> | Wed Jul 11 16:19:51 2007 -0600 |
committer | Brian <brian.paul@tungstengraphics.com> | Wed Jul 11 16:20:32 2007 -0600 |
tree | dcbc39ef901b21260d948606be5549bab6aea5ba | |
parent | 34f6243beff6a66a76814638db68897eb719dd30 [diff] [blame] |
Minor clean-up of polygon offset logic. Properly compute _MRD field.
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 1fd31a5..dc10d9f 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c
@@ -65,7 +65,9 @@ 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; }