Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-04-28 22:36:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-04-28 22:36:39 +0300
commitcbb601346a6401192298b34255f7f3c981078293 (patch)
treeb8c59a5e36f35a051e0c038d49ced43c8ee039ee /source/blender/editors/screen
parente0ae6939242ed5a50f9904b87a059b4edf9aeabf (diff)
Error in last commit
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/glutil.c2
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