Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2022-06-07 15:36:37 +0300
committerSybren A. Stüvel <sybren@blender.org>2022-06-07 15:36:45 +0300
commit503bcaf1a2cd2bfd5d66494dd52a0a91472ee8ea (patch)
treea8e1db8f7fe5c216ee7a15e2aff0f94c770ad831 /source/blender/editors/animation
parentf49efed9533bf70cdc863c9bf6e136df0d99ec91 (diff)
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.
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r--source/blender/editors/animation/anim_markers.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c
index 8519b2061f2..ad06b185132 100644
--- a/source/blender/editors/animation/anim_markers.c
+++ b/source/blender/editors/animation/anim_markers.c
@@ -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();
}