Fix glLineWidth state use w/ grid floor and brush
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user