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:
authorBastien Montagne <montagne29@wanadoo.fr>2017-03-20 16:46:26 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-03-20 16:46:26 +0300
commit69a17bce1a29f89859d0148733e8f1086b033432 (patch)
treecbe4aad05790639f403e50f279fddd8d055957c7 /source/blender/editors/space_sequencer/sequencer_draw.c
parent21b361194fb4465ddb9590d1c784820b926bebe7 (diff)
Cleanup: remove useless `glDisable(GL_LINE_STIPPLE)` call.
Note that muted strips have solid border currently, marked as TODO to add back stippled lines (if with want them back?).
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_draw.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index b64a372e7ff..3da0150a75b 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -829,6 +829,7 @@ static void draw_seq_strip(const bContext *C, SpaceSeq *sseq, Scene *scene, AReg
pos = add_attrib(immVertexFormat(), "pos", GL_FLOAT, 2, KEEP_FLOAT);
+ /* TODO: add back stippled line for muted strips? */
immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR);
if (seq->flag & SEQ_MUTE) {
@@ -845,10 +846,6 @@ static void draw_seq_strip(const bContext *C, SpaceSeq *sseq, Scene *scene, AReg
imm_draw_line_box(pos, x1, y1, x2, y2); /* outline */
- if (seq->flag & SEQ_MUTE) {
- glDisable(GL_LINE_STIPPLE);
- }
-
immUnbindProgram();
/* calculate if seq is long enough to print a name */