]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix transparency of VTK Viewer
authorrnv <rnv@opencascade.com>
Fri, 2 Apr 2021 02:28:59 +0000 (05:28 +0300)
committerrnv <rnv@opencascade.com>
Fri, 2 Apr 2021 02:28:59 +0000 (05:28 +0300)
src/VTKViewer/VTKViewer_OpenGLRenderer.cxx

index f0af96f5078815b76d24aac4ab7ce6fb5efc4a52..c33b099301018b3f69b7b399bf54d312c4dca065 100644 (file)
@@ -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<GLclampf>(this->Background[0]),
                   static_cast<GLclampf>(this->Background[1]),
                   static_cast<GLclampf>(this->Background[2]),
-                  static_cast<GLclampf>(0.0));
+                  static_cast<GLclampf>(1.0));
     clear_mask |= GL_COLOR_BUFFER_BIT;
   }