fix for depth drawing + clipping
authorCampbell Barton <ideasman42@gmail.com>
Fri, 12 Feb 2010 11:03:41 +0000 (11:03 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 12 Feb 2010 11:03:41 +0000 (11:03 +0000)
source/blender/editors/space_view3d/view3d_draw.c

index 855da0eefcf9021fdf9401201eb7902a97e7c45c..31c7dbe7321b00d5a833a369ae2a67de1dfc4823 100644 (file)
@@ -1728,7 +1728,12 @@ void draw_depth(Scene *scene, ARegion *ar, View3D *v3d, int (* func)(void *))
                v3d->transp= FALSE;
        }
        
+       if(rv3d->rflag & RV3D_CLIPPING)
+               view3d_clr_clipping();
+       
        v3d->zbuf = zbuf;
+       if(!v3d->zbuf) glDisable(GL_DEPTH_TEST);
+
        U.glalphaclip = glalphaclip;
        v3d->flag = flag;
        U.obcenter_dia= obcenter_dia;