From c1c658b839820a500cdfc912af9a1cd7596da8d4 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 9 Jul 2021 14:39:50 +0300 Subject: [PATCH] Bos #24528: EDF 23831 - Bring to front --- src/OCCViewer/OCCViewer_VService.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); } -- 2.39.2