From a5478cf910adde4c9c54250351c5f32e3d44f01f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 5 Sep 2012 10:19:01 +0000 Subject: [PATCH] From Nico Kruithof, "There is a small typo in the ShapeDrawable code for a sphere. There was a gl.Begin(GL_QUAD_STRIP) that was never closed, nor used. " --- src/osg/ShapeDrawable.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/osg/ShapeDrawable.cpp b/src/osg/ShapeDrawable.cpp index 4ec446571..cbaffa722 100644 --- a/src/osg/ShapeDrawable.cpp +++ b/src/osg/ShapeDrawable.cpp @@ -306,8 +306,6 @@ void DrawShapeVisitor::apply(const Sphere& sphere) float angleDelta = osg::PI*2.0f/(float)numSegments; float texCoordHorzDelta = 1.0f/(float)numSegments; - gl.Begin(GL_QUAD_STRIP); - if (drawBackFace) { float lBase=-osg::PI*0.5f;