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:
authorMike Erwin <significant.bit@gmail.com>2017-03-24 04:36:34 +0300
committerMike Erwin <significant.bit@gmail.com>2017-03-27 04:23:54 +0300
commit67ffad8cd2b44d7685ec5aec2a76e1cb13d9f7a1 (patch)
tree3b62b443ab3602476c9f1fe1f42549d4d85f2b41 /source/blender/editors/space_sequencer
parent59c562337291217c2fbd48adc8b3862c24771d09 (diff)
OpenGL: remove several glMatrixMode calls
A few of these were redundant, others could be converted to new matrix API. Part of T49450
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index 36aa3358b18..1fea1a98e94 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -1287,10 +1287,7 @@ void draw_image_seq(const bContext *C, Scene *scene, ARegion *ar, SpaceSeq *sseq
}
if (draw_backdrop) {
- glMatrixMode(GL_PROJECTION);
- gpuPushMatrix();
- gpuLoadIdentity();
- glMatrixMode(GL_MODELVIEW);
+ /* XXX: need to load identity projection too? */
gpuPushMatrix();
gpuLoadIdentity();
}
@@ -1422,9 +1419,6 @@ void draw_image_seq(const bContext *C, Scene *scene, ARegion *ar, SpaceSeq *sseq
if (draw_backdrop) {
gpuPopMatrix();
- glMatrixMode(GL_PROJECTION);
- gpuPopMatrix();
- glMatrixMode(GL_MODELVIEW);
return;
}