Fixed memory leak associated with VertexArrayStte objects not getting released on destruction of Geometry/Drawables.
This commit is contained in:
@@ -82,10 +82,7 @@ Geometry::Geometry(const Geometry& geometry,const CopyOp& copyop):
|
||||
|
||||
Geometry::~Geometry()
|
||||
{
|
||||
// do dirty here to keep the getGLObjectSizeHint() estimate on the ball
|
||||
dirtyGLObjects();
|
||||
|
||||
// no need to delete, all automatically handled by ref_ptr :-)
|
||||
Geometry::releaseGLObjects();
|
||||
}
|
||||
|
||||
#define ARRAY_NOT_EMPTY(array) (array!=0 && array->getNumElements()!=0)
|
||||
|
||||
Reference in New Issue
Block a user