diff options
author | Nivesh Rajbhandari | 2012-06-27 17:28:06 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-06-27 17:28:06 -0700 |
commit | 2da05a4c71bfe9b136384d9e94fbfbef19f24550 (patch) | |
tree | bfa21e77da8722f71fd8d32dc2f768f08a7a7183 /js/lib/drawing | |
parent | 978b9049d057d2a0995758275f68da8641193201 (diff) | |
download | ninja-2da05a4c71bfe9b136384d9e94fbfbef19f24550.tar.gz |
Performance fix for WebGL materials playing even when the dialog/file is no longer in view.
Also pausing videos when switching documents.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/lib/drawing')
-rwxr-xr-x | js/lib/drawing/world.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js index 8068284e..c8c5b95a 100755 --- a/js/lib/drawing/world.js +++ b/js/lib/drawing/world.js | |||
@@ -623,6 +623,7 @@ World.prototype.clearTree = function() | |||
623 | 623 | ||
624 | if (this._useWebGL) | 624 | if (this._useWebGL) |
625 | { | 625 | { |
626 | this.stop(); | ||
626 | var root = this._rootNode; | 627 | var root = this._rootNode; |
627 | root.children = new Array(); | 628 | root.children = new Array(); |
628 | RDGE.globals.engine.unregisterCanvas( this._canvas.rdgeid ); | 629 | RDGE.globals.engine.unregisterCanvas( this._canvas.rdgeid ); |