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
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-24 14:38:40 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-24 14:39:39 +0300
commit1b12c2d423f3b7265455e42dc5f5c5e20c56624d (patch)
treee1a274e636085d9da742dcbba34343ad4ec0f846 /source
parentfa818170e3d01e752714cf22a5909e86fb2f8c3d (diff)
Fix T58216: backdrop drawing in sequencer broken.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c4
1 files changed, 3 insertions, 1 deletions
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;
}