@@ -39,9 +39,9 @@ static Handle(OpenGl_GraphicDriver)& GetGraphicDriver()
3939// Function : WClass
4040// Purpose :
4141// =========================================================
42- static const Handle (MMgt_TShared )& WClass()
42+ static const Handle (Standard_Transient )& WClass()
4343{
44- static Handle (MMgt_TShared ) aWindowClass;
44+ static Handle (Standard_Transient ) aWindowClass;
4545#ifdef WNT
4646 if (aWindowClass.IsNull ())
4747 {
@@ -70,7 +70,7 @@ Standard_Boolean Display3d::InitOffscreen(int size_x, int size_y)
7070 }
7171 printf (" Graphic_Driver created.\n " );
7272 // Create V3dViewer and V3d_View
73- myV3dViewer = new V3d_Viewer (GetGraphicDriver (), ( short * const ) " viewer " );
73+ myV3dViewer = new V3d_Viewer (GetGraphicDriver ());
7474 printf (" V3d_Viewer created.\n " );
7575 // Create AISInteractiveViewer
7676 myAISContext = new AIS_InteractiveContext (myV3dViewer);
@@ -164,7 +164,7 @@ void Display3d::Init(long window_handle)
164164 }
165165 printf (" Graphic_Driver created.\n " );
166166 // Create V3dViewer and V3d_View
167- myV3dViewer = new V3d_Viewer (GetGraphicDriver (), ( short * const ) " viewer " );
167+ myV3dViewer = new V3d_Viewer (GetGraphicDriver ());
168168 printf (" V3d_Viewer created.\n " );
169169 // Create AISInteractiveViewer
170170 myAISContext = new AIS_InteractiveContext (myV3dViewer);
@@ -240,7 +240,7 @@ void Display3d::Test()
240240{
241241 BRepPrimAPI_MakeBox S (100 ,50 ,40 );
242242 Handle (AIS_Shape) anAISShape = new AIS_Shape (S.Shape ());
243- myAISContext->Display (anAISShape);
243+ myAISContext->Display (anAISShape, Standard_False );
244244 myV3dView->ZFitAll ();
245245 myV3dView->FitAll ();
246246}
0 commit comments