From: jfa Date: Fri, 9 Jul 2021 11:39:50 +0000 (+0300) Subject: Bos #24528: EDF 23831 - Bring to front X-Git-Tag: V9_8_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eb094eb287b474a6dbcf43a62dc0ef53b52d5e09;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); }