diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-24 12:30:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-24 12:30:41 +0300 |
commit | 54b992ae6159d0bf788adaa5d585d82d17333f1e (patch) | |
tree | 0f7f73bac5dcb1b0a7595a3dd5621c6e03beb07f /source/blender/editors/space_view3d | |
parent | 7c1e369987bcfc0c9b0687570a9afe1c772c1666 (diff) |
Fix glLineWidth state use w/ grid floor and brush
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index cb9e0d15984..c37d90b1878 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -304,6 +304,8 @@ static void drawgrid(UnitSettings *unit, ARegion *ar, View3D *v3d, const char ** dx = fabs(x - (wx) * fx / fw); if (dx == 0) dx = fabs(y - (wy) * fy / fw); + glLineWidth(1.0f); + glDepthMask(GL_FALSE); /* disable write in zbuffer */ /* check zoom out */ |