Added setStateSet(0) to destructors to force the problem clean up of attached
StateSets.
This commit is contained in:
@@ -299,6 +299,9 @@ Drawable::Drawable(const Drawable& drawable,const CopyOp& copyop):
|
||||
|
||||
Drawable::~Drawable()
|
||||
{
|
||||
// cleanly detatch any associated stateset (include remove parent links)
|
||||
setStateSet(0);
|
||||
|
||||
dirtyDisplayList();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user