0024752: Visualization - inherit OpenGl_Group from Graphic3d_Group
[occt.git] / src / V3d / V3d.cxx
index d91fbd9..43670ff 100644 (file)
@@ -247,7 +247,7 @@ void V3d::DrawSphere(const Handle(V3d_Viewer)& aViewer,const Quantity_Length ray
   const Standard_Boolean inf = ray < 0;
   const Standard_Real aRadius = Standard_ShortReal(Abs(ray));
   Handle(Graphic3d_Structure) Struct = new Graphic3d_Structure(aViewer->Viewer()) ;
-  Handle(Graphic3d_Group) Group = new Graphic3d_Group(Struct) ;
+  Handle(Graphic3d_Group)     Group  = Struct->NewGroup();
 
   Handle(Graphic3d_AspectLine3d) LineAttrib = new Graphic3d_AspectLine3d() ;
   LineAttrib->SetColor(Quantity_Color(Quantity_NOC_YELLOW));