VSE: speedup timeline drawing, and improve waveform display #115311
|
@ -79,7 +79,7 @@ void SeqQuadsBatch::draw()
|
|||
}
|
||||
if (lines_num > 0) {
|
||||
GPU_vertbuf_tag_dirty(vbo_lines);
|
||||
GPU_vertbuf_data_len_set(vbo_lines, lines_num * 4);
|
||||
GPU_vertbuf_data_len_set(vbo_lines, lines_num * 2);
|
||||
GPU_vertbuf_use(vbo_lines);
|
||||
GPU_batch_draw_range(batch_lines, 0, lines_num * 2);
|
||||
lines_num = 0;
|
||||
|
|
|
@ -473,9 +473,7 @@ static void retime_keys_draw(const bContext *C, SeqQuadsBatch *quads)
|
|||
retime_key_draw(C, seq, &key, &sh_bindings, &selection, &point_counter);
|
||||
}
|
||||
}
|
||||
if (point_counter != 0) {
|
||||
immEnd();
|
||||
}
|
||||
immEnd();
|
||||
GPU_program_point_size(false);
|
||||
immUnbindProgram();
|
||||
GPU_blend(GPU_BLEND_NONE);
|
||||
|
|
Loading…
Reference in New Issue