From: vsr Date: Fri, 10 Nov 2017 09:07:27 +0000 (+0300) Subject: 0023503: EDF 15850 - No VTK Viewer after several actions X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fvsr%2F23503;p=modules%2Fgui.git 0023503: EDF 15850 - No VTK Viewer after several actions --- diff --git a/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx b/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx index f99d102e1..30be08297 100644 --- a/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx +++ b/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx @@ -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 )