[Bf-blender-cvs] [cbb6013] master: Error in last commit
Campbell Barton
noreply at git.blender.org
Tue Apr 28 21:36:54 CEST 2015
Commit: cbb601346a6401192298b34255f7f3c981078293
Author: Campbell Barton
Date: Wed Apr 29 05:36:39 2015 +1000
Branches: master
https://developer.blender.org/rBcbb601346a6401192298b34255f7f3c981078293
Error in last commit
===================================================================
M source/blender/editors/screen/glutil.c
===================================================================
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c
index ca0047b..2a0e13b 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
More information about the Bf-blender-cvs
mailing list