[Bf-blender-cvs] [821fa24] blender2.8: Viewport: fix depth not being cleared in ortho mode

Dalai Felinto noreply at git.blender.org
Tue Oct 25 17:09:52 CEST 2016


Commit: 821fa248760bf97be88de7a9088f9038396278c3
Author: Dalai Felinto
Date:   Tue Oct 25 11:17:53 2016 +0000
Branches: blender2.8
https://developer.blender.org/rB821fa248760bf97be88de7a9088f9038396278c3

Viewport: fix depth not being cleared in ortho mode

===================================================================

M	source/blender/editors/space_view3d/view3d_draw.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index 57b08d2..e843d3c 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -883,6 +883,7 @@ static void view3d_draw_background(const bContext *C)
 	RegionView3D *rv3d = CTX_wm_region_view3d(C);
 
 	glDisable(GL_DEPTH_TEST);
+	glDepthMask(GL_TRUE);
 	/* Background functions do not read or write depth, but they do clear or completely
 	 * overwrite color buffer. It's more efficient to clear color & depth in once call, so
 	 * background functions do this even though they don't use depth.




More information about the Bf-blender-cvs mailing list