From 59d54c31e867a433ebf3b62c2580f5dce81d4827 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 10 Nov 2017 12:07:27 +0300 Subject: [PATCH] 0023503: EDF 15850 - No VTK Viewer after several actions --- src/VTKViewer/VTKViewer_OpenGLRenderer.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 ) -- 2.39.2