From: Viktor UZLOV Date: Wed, 5 May 2021 14:00:10 +0000 (+0300) Subject: transparency with mesa X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=18a1f93f9da89b83c9498c54dec36ea2aee51c09;p=modules%2Fgui.git transparency with mesa --- diff --git a/src/SVTK/SVTK_ViewWindow.cxx b/src/SVTK/SVTK_ViewWindow.cxx index 67fccd088..6273bd490 100644 --- a/src/SVTK/SVTK_ViewWindow.cxx +++ b/src/SVTK/SVTK_ViewWindow.cxx @@ -251,6 +251,9 @@ void SVTK_ViewWindow::Initialize(SVTK_ViewModelBase* theModel) myKeyFreeInteractorStyle->AddObserver(SVTK::OperationFinished, myEventCallbackCommand.GetPointer(), 0.0); + char *mesavar = getenv("SALOME_USE_MESA"); + if (mesavar) + getRenderer()->SetUseDepthPeeling(1); getRenderer()->SetBackgroundAlpha(1.0); myInteractor->getRenderWindow()->SetMultiSamples(0);