projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
0022650: Exception in Primitive Array during Redisplay of Presentable Object
[occt.git]
/
src
/
Graphic3d
/
Graphic3d_Group_1.cxx
diff --git
a/src/Graphic3d/Graphic3d_Group_1.cxx
b/src/Graphic3d/Graphic3d_Group_1.cxx
index
4d7fb59
..
4911091
100755
(executable)
--- a/
src/Graphic3d/Graphic3d_Group_1.cxx
+++ b/
src/Graphic3d/Graphic3d_Group_1.cxx
@@
-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 () {