diff --git a/Rendering/Core/vtkRenderWindow.cxx b/Rendering/Core/vtkRenderWindow.cxx index 75e9f9a391d..0da755d5d4f 100644 --- a/Rendering/Core/vtkRenderWindow.cxx +++ b/Rendering/Core/vtkRenderWindow.cxx @@ -828,6 +828,7 @@ void vtkRenderWindow::RemoveRenderer(vtkRenderer *ren) // we are its parent if (ren->GetRenderWindow() == this) { + ren->ReleaseGraphicsResources(this); ren->SetRenderWindow(NULL); } this->Renderers->RemoveItem(ren);