mirror of
https://github.com/photonstorm/phaser
synced 2024-11-29 16:10:56 +00:00
Added destroy method back in again
This commit is contained in:
parent
d0cc5f17d5
commit
52f7ec621a
1 changed files with 24 additions and 0 deletions
|
@ -951,6 +951,30 @@ var MultiPipeline = new Class({
|
|||
prev[3] = trY;
|
||||
prev[4] = 1;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Destroys all shader instances, removes all object references and nulls all external references.
|
||||
*
|
||||
* @method Phaser.Renderer.WebGL.Pipelines.MultiPipeline#destroy
|
||||
* @fires Phaser.Renderer.WebGL.Pipelines.Events#DESTROY
|
||||
* @since 3.60.0
|
||||
*
|
||||
* @return {this} This WebGLPipeline instance.
|
||||
*/
|
||||
destroy: function ()
|
||||
{
|
||||
this._tempMatrix1.destroy();
|
||||
this._tempMatrix2.destroy();
|
||||
this._tempMatrix3.destroy();
|
||||
|
||||
this._tempMatrix1 = null;
|
||||
this._tempMatrix1 = null;
|
||||
this._tempMatrix1 = null;
|
||||
|
||||
WebGLPipeline.prototype.destroy.call(this);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue