Marker drawing: don't restore GPU line width
Adhere to the documented use of `GPU_line_width()` and don't restore the previously set line width.
This commit is contained in:
@@ -543,7 +543,6 @@ void ED_markers_draw(const bContext *C, int flag)
|
||||
View2D *v2d = UI_view2d_fromcontext(C);
|
||||
int cfra = CTX_data_scene(C)->r.cfra;
|
||||
|
||||
const float line_width = GPU_line_width_get();
|
||||
GPU_line_width(1.0f);
|
||||
|
||||
rctf markers_region_rect;
|
||||
@@ -578,7 +577,6 @@ void ED_markers_draw(const bContext *C, int flag)
|
||||
}
|
||||
}
|
||||
|
||||
GPU_line_width(line_width);
|
||||
GPU_matrix_pop();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user