From 2da05a4c71bfe9b136384d9e94fbfbef19f24550 Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Wed, 27 Jun 2012 17:28:06 -0700 Subject: 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 --- js/lib/drawing/world.js | 1 + 1 file changed, 1 insertion(+) (limited to 'js/lib/drawing') 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() if (this._useWebGL) { + this.stop(); var root = this._rootNode; root.children = new Array(); RDGE.globals.engine.unregisterCanvas( this._canvas.rdgeid ); -- cgit v1.2.3