0022650: Exception in Primitive Array during Redisplay of Presentable Object
[occt.git] / src / Graphic3d / Graphic3d_Group_1.cxx
index 4d7fb59..4911091 100755 (executable)
@@ -69,6 +69,10 @@ void Graphic3d_Group::Destroy () {
        cout << "Graphic3d_Group::Destroy ()\n";
 #endif
 
+  // tell graphics driver to clear internal resources of the group
+  if (!IsEmpty () && !MyGraphicDriver.IsNull ())
+    MyGraphicDriver->ClearGroup (MyCGroup);
+
 }
 
 void Graphic3d_Group::Remove () {