[Bf-blender-cvs] [1b12c2d423f] master: Fix T58216: backdrop drawing in sequencer broken.

Brecht Van Lommel noreply at git.blender.org
Thu Jan 24 12:40:07 CET 2019


Commit: 1b12c2d423f3b7265455e42dc5f5c5e20c56624d
Author: Brecht Van Lommel
Date:   Thu Jan 24 12:38:40 2019 +0100
Branches: master
https://developer.blender.org/rB1b12c2d423f3b7265455e42dc5f5c5e20c56624d

Fix T58216: backdrop drawing in sequencer broken.

===================================================================

M	source/blender/editors/space_sequencer/sequencer_draw.c

===================================================================

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;
 	}



More information about the Bf-blender-cvs mailing list