Salome HOME
Fix problem with rendering transparent objects in VTK viewer
[modules/gui.git] / src / VTKViewer / VTKViewer_OpenGLRenderer.cxx
index d0b6acff76048b8d7e86513cd9c2badb2da59812..042458467679f82826a73a6aa9994052c7f41bc2 100644 (file)
@@ -199,7 +199,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>(1.0));
+                  static_cast<GLclampf>(this->BackgroundAlpha));
     clear_mask |= GL_COLOR_BUFFER_BIT;
   }