index.js
function() {
		if (this.id && this.gl)
			this.gl.deleteTexture(this.id);
		if (this.context)
			this.context.removeManagedObject(this);
		this.width = this.height = 0;
		this.id = null;
		this.managedArgs = null;
		this.context = null;
		this.gl = null;
	}
function() {
		if (this.id && this.gl)
			this.gl.deleteTexture(this.id);
		if (this.context)
			this.context.removeManagedObject(this);
		this.width = this.height = 0;
		this.id = null;
		this.managedArgs = null;
		this.context = null;
		this.gl = null;
	}
function ( ) { if ( this . id && this . gl ) this . gl . deleteTexture ( this . id ) ; if ( this . context ) this . context . removeManagedObject ( this ) ; this . width = this . height = 0 ; this . id = null ; this . managedArgs = null ; this . context = null ; this . gl = null ; }
Destroys this texture by deleting the GL resource,
removing it from the WebGLContext management stack,
setting its size to zero, and id and managed arguments to null.

Trying to use this texture after may lead to undefined behaviour.

@method  destroy
Destroys this texture by deleting the GL resource removing it from the WebGLContext management stack setting its size to zero and id and managed arguments to null .