mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-05 04:07:58 +08:00
0030240: Visualization, OpenGl_FrameStatsPrs - chart cannot be erased
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user