Fix glLineWidth state use w/ grid floor and brush

This commit is contained in:
Campbell Barton
2016-01-24 20:30:41 +11:00
parent 7c1e369987
commit 54b992ae61
2 changed files with 3 additions and 0 deletions

View File

@@ -1064,6 +1064,7 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused))
}
/* make lines pretty */
glLineWidth(1.0f);
glEnable(GL_BLEND);
glEnable(GL_LINE_SMOOTH);

View File

@@ -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 */