From dc2749cfbdbf460e1deaf85b0d83bf6142245738 Mon Sep 17 00:00:00 2001 From: kgv Date: Mon, 15 Oct 2018 14:19:01 +0300 Subject: [PATCH] 0030240: Visualization, OpenGl_FrameStatsPrs - chart cannot be erased --- src/OpenGl/OpenGl_FrameStatsPrs.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/OpenGl/OpenGl_FrameStatsPrs.cxx b/src/OpenGl/OpenGl_FrameStatsPrs.cxx index eb35b2e008..b4ddc31932 100644 --- a/src/OpenGl/OpenGl_FrameStatsPrs.cxx +++ b/src/OpenGl/OpenGl_FrameStatsPrs.cxx @@ -143,6 +143,9 @@ void OpenGl_FrameStatsPrs::updateChart (const Handle(OpenGl_Workspace)& theWorks const Standard_Integer aNbBins = aStats->DataFrames().Size(); if (aNbBins <= 1) { + myChartIndices ->Release (aCtx.get()); + myChartVertices->Release (aCtx.get()); + myChartLines ->Release (aCtx.get()); return; }