_onTextureChange()
    {
        if (this._onTextureUpdateBinding)
        {
            this._onTextureUpdateBinding.detach();
            this._onTextureUpdateBinding = null;
        }

        this._vertsDirty = true;

        if (this._texture)
        {
            this._onTextureUpdateBinding = this._texture.onUpdate.add(this._onTextureUpdate, this);

            if (this._texture.ready)
            {
                this._onTextureUpdate();
            }
        }
    }
/**
     * Called by the texture component when the texture changes.
     *
     * @protected
     */
Called by the texture component when the texture changes.
@protected
Called by the texture component when the texture changes . @protected
_onTextureChange()
    {
        if (this._onTextureUpdateBinding)
        {
            this._onTextureUpdateBinding.detach();
            this._onTextureUpdateBinding = null;
        }
        this._vertsDirty = true;
        if (this._texture)
        {
            this._onTextureUpdateBinding = this._texture.onUpdate.add(this._onTextureUpdate, this);
            if (this._texture.ready)
            {
                this._onTextureUpdate();
            }
        }
    }
_onTextureChange ( ) { if ( this . _onTextureUpdateBinding ) { this . _onTextureUpdateBinding . detach ( ) ; this . _onTextureUpdateBinding = null ; } this . _vertsDirty = true ; if ( this . _texture ) { this . _onTextureUpdateBinding = this . _texture . onUpdate . add ( this . _onTextureUpdate , this ) ; if ( this . _texture . ready ) { this . _onTextureUpdate ( ) ; } } }
Called by the texture component when the texture changes.
Called by the texture component when the texture changes .