]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Bos #24528: EDF 23831 - Bring to front
authorjfa <jfa@opencascade.com>
Fri, 9 Jul 2021 11:39:50 +0000 (14:39 +0300)
committerjfa <jfa@opencascade.com>
Fri, 9 Jul 2021 11:39:50 +0000 (14:39 +0300)
src/OCCViewer/OCCViewer_VService.cxx

index ff82747dd131a0da7350d1942bbfbc6a441772d0..dc7e64a48d49f8e027ff8d617091523dffd27d48 100644 (file)
@@ -59,8 +59,7 @@ Handle(Aspect_Window) OCCViewer_VService::CreateWindow( const Handle(V3d_View)&
 */
 Handle(V3d_Viewer) OCCViewer_VService::CreateViewer()
 {
-  static Handle(OpenGl_GraphicDriver) aGraphicDriver;
-  if (aGraphicDriver.IsNull())
-    aGraphicDriver = new OpenGl_GraphicDriver(new Aspect_DisplayConnection());
+  Handle(OpenGl_GraphicDriver) aGraphicDriver =
+    new OpenGl_GraphicDriver(new Aspect_DisplayConnection());
   return new V3d_Viewer(aGraphicDriver);
 }