1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0030240: Visualization, OpenGl_FrameStatsPrs - chart cannot be erased

This commit is contained in:
kgv 2018-10-15 14:19:01 +03:00
parent c3749171b7
commit dc2749cfbd

View File

@ -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;
}