Skip to content

Commit

Permalink
Add deallocation to BufferGeometry.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondavies committed Nov 1, 2012
1 parent 5bc4598 commit 6b3eaa0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
7 changes: 7 additions & 0 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -6014,6 +6014,13 @@ THREE.BufferGeometry.prototype = {
this.hasTangents = true;
this.tangentsNeedUpdate = true;

},

deallocate: function () {

var index = THREE.GeometryLibrary.indexOf( this );
if ( index !== -1 ) THREE.GeometryLibrary.splice( index, 1 );

}

};
Expand Down
Loading

0 comments on commit 6b3eaa0

Please sign in to comment.