diff options
author | hwc487 | 2012-03-21 04:03:38 -0700 |
---|---|---|
committer | hwc487 | 2012-03-21 04:03:38 -0700 |
commit | 6b6fa1ec7d39057ce937f090b2965c09f1930070 (patch) | |
tree | 128bce053ef053eada8c3a951cac805affad660e /js/lib/drawing | |
parent | 6d0b1c5d8fe71244f93c2f994e1097b454df2766 (diff) | |
download | ninja-6b6fa1ec7d39057ce937f090b2965c09f1930070.tar.gz |
Clear RDGE when an element is deleted and before registering the context.
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 0979cf12..07a2c3ae 100755 --- a/js/lib/drawing/world.js +++ b/js/lib/drawing/world.js | |||
@@ -363,6 +363,7 @@ var World = function GLWorld( canvas, use3D, preserveDrawingBuffer ) { | |||
363 | if (this._useWebGL) { | 363 | if (this._useWebGL) { |
364 | rdgeStarted = true; | 364 | rdgeStarted = true; |
365 | this._canvas.rdgeid = this._canvas.getAttribute( "data-RDGE-id" ); | 365 | this._canvas.rdgeid = this._canvas.getAttribute( "data-RDGE-id" ); |
366 | g_Engine.unregisterCanvas( this._canvas ) | ||
366 | g_Engine.registerCanvas(this._canvas, this); | 367 | g_Engine.registerCanvas(this._canvas, this); |
367 | RDGEStart( this._canvas ); | 368 | RDGEStart( this._canvas ); |
368 | this._canvas.task.stop() | 369 | this._canvas.task.stop() |