]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0023503: EDF 15850 - No VTK Viewer after several actions vsr/23503
authorvsr <vsr@opencascade.com>
Fri, 10 Nov 2017 09:07:27 +0000 (12:07 +0300)
committervsr <vsr@opencascade.com>
Fri, 10 Nov 2017 09:07:27 +0000 (12:07 +0300)
src/VTKViewer/VTKViewer_OpenGLRenderer.cxx

index f99d102e143dcf0fe23b4c0cd4600d13f43d9886..30be082972c35c9ca7e8b4f1dd9a43132a0c8133 100644 (file)
@@ -59,6 +59,9 @@ VTKViewer_OpenGLRenderer::VTKViewer_OpenGLRenderer()
 
 VTKViewer_OpenGLRenderer::~VTKViewer_OpenGLRenderer()
 {
+  this->OpenGLHelper.DestroyShaderProgram (this->BackgroundProgram,
+                                          this->BackgroundVertexShader,
+                                          this->BackgroundFragmentShader);
 }
 
 void VTKViewer_OpenGLRenderer::SetGradientType( const int theGradientType )