diff options
author | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-20 20:39:54 +0000 |
---|---|---|
committer | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-20 20:39:54 +0000 |
commit | 94e4009246939616ec5ff850d560b13f638d58cb (patch) | |
tree | a49f8d4e154c2d994ffbe2184ac02f343e35ec63 /o3d/samples | |
parent | 90a2847df7f4d9bb1e3ea5415d09f09568297274 (diff) | |
download | chromium_src-94e4009246939616ec5ff850d560b13f638d58cb.zip chromium_src-94e4009246939616ec5ff850d560b13f638d58cb.tar.gz chromium_src-94e4009246939616ec5ff850d560b13f638d58cb.tar.bz2 |
Fix bugs in rendergraph.js
DrawPassInfo.destroy was not correctly deleting things.
Review URL: http://codereview.chromium.org/297016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29567 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/samples')
-rw-r--r-- | o3d/samples/o3djs/rendergraph.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/o3d/samples/o3djs/rendergraph.js b/o3d/samples/o3djs/rendergraph.js index cea0074..5587623 100644 --- a/o3d/samples/o3djs/rendergraph.js +++ b/o3d/samples/o3djs/rendergraph.js @@ -554,8 +554,8 @@ o3djs.rendergraph.DrawPassInfo = function(pack, o3djs.rendergraph.DrawPassInfo.prototype.destroy = function() { // Remove everything we created from the pack. if (this.ownDrawList_) { - this.drawList.parent = null; - this.pack_.removeObject(this.drawList); + this.drawPass.drawList = null; + this.pack.removeObject(this.drawList); } this.drawPass.parent = null; this.stateSet.parent = null; |