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:
Sybren A. Stüvel
2022-06-07 14:36:37 +02:00
parent f49efed953
commit 503bcaf1a2

View File

@@ -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();
}