Added reset of _stateset to prevent the releaseGLObjects calling release on th StateSet from the destructor

This commit is contained in:
Robert Osfield 2018-09-03 09:37:36 +01:00
parent 8b8c427afe
commit bcba3928e6
2 changed files with 2 additions and 0 deletions

View File

@ -256,6 +256,7 @@ Drawable::Drawable(const Drawable& drawable,const CopyOp& copyop):
Drawable::~Drawable()
{
_stateset = 0;
Drawable::releaseGLObjects();
}

View File

@ -82,6 +82,7 @@ Geometry::Geometry(const Geometry& geometry,const CopyOp& copyop):
Geometry::~Geometry()
{
_stateset = 0;
Geometry::releaseGLObjects();
}