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:
authorDalai Felinto <dfelinto@gmail.com>2017-04-05 13:31:55 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-04-05 16:02:31 +0300
commitbbfa1a8639114d66ed0c4971a1996e08e520bd06 (patch)
tree17e1d3bd05a6ebf9455dfb5ca342023d95080f6d /source/blender/editors/space_view3d/drawobject.c
parentba5b792dd997d634c0901bddbca4ebb82d6ebbbe (diff)
Viewport: 3D cameras don't need glPushAttrib/glPopAttrib
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index fc28baf5160..eaa5ee3b9eb 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -2009,7 +2009,6 @@ static void drawcamera_stereo3d(
if (is_stereo3d_cameras) {
/* draw connecting lines */
- glPushAttrib(GL_ENABLE_BIT); /* TODO(merwin): new state tracking! */
glLineStipple(2, 0xAAAA);
glEnable(GL_LINE_STIPPLE);
@@ -2018,7 +2017,7 @@ static void drawcamera_stereo3d(
immVertex3fv(pos, origin[1]);
immEnd();
- glPopAttrib();
+ glDisable(GL_LINE_STIPPLE);
}
/* draw convergence plane */