From: jfa Date: Fri, 9 Jul 2021 11:39:50 +0000 (+0300) Subject: Bos #24528: EDF 23831 - Bring to front X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c1c658b839820a500cdfc912af9a1cd7596da8d4;p=modules%2Fgui.git Bos #24528: EDF 23831 - Bring to front --- diff --git a/src/OCCViewer/OCCViewer_VService.cxx b/src/OCCViewer/OCCViewer_VService.cxx index ff82747dd..dc7e64a48 100644 --- a/src/OCCViewer/OCCViewer_VService.cxx +++ b/src/OCCViewer/OCCViewer_VService.cxx @@ -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); }