From 1b12c2d423f3b7265455e42dc5f5c5e20c56624d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 24 Jan 2019 12:38:40 +0100 Subject: Fix T58216: backdrop drawing in sequencer broken. --- source/blender/editors/space_sequencer/sequencer_draw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c index 38243638943..e6872496810 100644 --- a/source/blender/editors/space_sequencer/sequencer_draw.c +++ b/source/blender/editors/space_sequencer/sequencer_draw.c @@ -1310,9 +1310,10 @@ void draw_image_seq(const bContext *C, Scene *scene, ARegion *ar, SpaceSeq *sseq } if (draw_backdrop) { - /* XXX: need to load identity projection too? */ GPU_matrix_push(); GPU_matrix_identity_set(); + GPU_matrix_push_projection(); + GPU_matrix_identity_projection_set(); } glGenTextures(1, (GLuint *)&texid); @@ -1443,6 +1444,7 @@ void draw_image_seq(const bContext *C, Scene *scene, ARegion *ar, SpaceSeq *sseq if (draw_backdrop) { GPU_matrix_pop(); + GPU_matrix_pop_projection(); return; } -- cgit v1.2.3