diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-28 22:36:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-28 22:36:39 +0300 |
commit | cbb601346a6401192298b34255f7f3c981078293 (patch) | |
tree | b8c59a5e36f35a051e0c038d49ced43c8ee039ee /source/blender/editors/screen/glutil.c | |
parent | e0ae6939242ed5a50f9904b87a059b4edf9aeabf (diff) |
Error in last commit
Diffstat (limited to 'source/blender/editors/screen/glutil.c')
-rw-r--r-- | source/blender/editors/screen/glutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c index ca0047b202a..2a0e13bccbc 100644 --- a/source/blender/editors/screen/glutil.c +++ b/source/blender/editors/screen/glutil.c @@ -1015,7 +1015,7 @@ void bglPolygonOffset(float UNUSED(viewdist), float dist) if (depth_fac == 0.0f) { int depthbits; glGetIntegerv(GL_DEPTH_BITS, &depthbits); - depth_fac = 1.0f / (float)(depthbits - 1); + depth_fac = 1.0f / (float)((1 << depthbits) - 1); } offs = (-1.0 / winmat[10]) * dist * depth_fac; #endif |