summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--o3d/samples/o3djs/rendergraph.js4
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;