[Bf-blender-cvs] [af07770] master: Remove redundant GL attribute push/pop
Campbell Barton
noreply at git.blender.org
Thu Jun 9 23:51:25 CEST 2016
Commit: af077706fb8dd0b8468955068f28b0b794f6430a
Author: Campbell Barton
Date: Fri Jun 10 06:48:43 2016 +1000
Branches: master
https://developer.blender.org/rBaf077706fb8dd0b8468955068f28b0b794f6430a
Remove redundant GL attribute push/pop
Stipple isnt left on during object drawing
===================================================================
M source/blender/editors/space_view3d/drawobject.c
===================================================================
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 5d1c0bf..e61ef0c 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -1924,8 +1924,6 @@ static void drawcamera_stereo3d(
if (is_stereo3d_cameras) {
/* draw connecting lines */
- glPushAttrib(GL_ENABLE_BIT);
-
glLineStipple(2, 0xAAAA);
glEnable(GL_LINE_STIPPLE);
@@ -1933,7 +1931,6 @@ static void drawcamera_stereo3d(
glVertex3fv(origin[0]);
glVertex3fv(origin[1]);
glEnd();
- glPopAttrib();
}
/* draw convergence plane */
More information about the Bf-blender-cvs
mailing list