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:
authorDalai Felinto <dfelinto@gmail.com>2016-10-07 01:21:12 +0300
committerDalai Felinto <dfelinto@gmail.com>2016-10-07 04:47:30 +0300
commit82d069c2327f4442f28be24d0f6ef6e6a2526366 (patch)
tree9bc2d11acfffd322a284b8e003f3bbfb9c1c2648 /source/blender/editors/space_view3d/view3d_draw.c
parent490a938c8be993e7b53e2a2642d645959dd078b2 (diff)
Viewport: draw floor routine should not use GL_ALWAYS for depth
(talked with merwin about that, and he agrees on it, we are not supposed to write to the scene depth buffer but we should read its depth)
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index 1086045049b..fe6dae0ece0 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -609,8 +609,6 @@ static void drawfloor(Scene *scene, View3D *v3d, const char **grid_unit, bool wr
immBindBuiltinProgram(GPU_SHADER_3D_FLAT_COLOR);
- glDepthFunc(GL_ALWAYS); /* draw lines in order given */
-
immBegin(GL_LINES, vertex_ct);
/* draw normal grid lines */
@@ -687,8 +685,6 @@ static void drawfloor(Scene *scene, View3D *v3d, const char **grid_unit, bool wr
immUnbindProgram();
/* done with XY plane */
-
- glDepthFunc(GL_LESS); /* restore default */
}
if (show_axis_x || show_axis_y || show_axis_z) {