From: rnv Date: Fri, 2 Apr 2021 02:28:59 +0000 (+0300) Subject: Fix transparency of VTK Viewer X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=04551c1c5eb7823f516fe9837dfeb62add2fa18d;p=modules%2Fgui.git Fix transparency of VTK Viewer --- diff --git a/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx b/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx index f0af96f50..c33b09930 100644 --- a/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx +++ b/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx @@ -74,7 +74,7 @@ void VTKViewer_OpenGLRenderer::SetGradientType( const int theGradientType ) void VTKViewer_OpenGLRenderer::Clear(void) { - vtkOpenGLRenderer::Clear(); + // vtkOpenGLRenderer::Clear(); #ifdef VTK_OPENGL2 if (this->OpenGLHelper.IsInitialized()) { @@ -112,7 +112,7 @@ void VTKViewer_OpenGLRenderer::Clear(void) glClearColor( static_cast(this->Background[0]), static_cast(this->Background[1]), static_cast(this->Background[2]), - static_cast(0.0)); + static_cast(1.0)); clear_mask |= GL_COLOR_BUFFER_BIT; }