Possible bug in multiRenderTarget

we have:

    public resize(size: any) {
        this.releaseInternalTextures();
        this._internalTextures = this._engine.createMultipleRenderTarget(size, this._multiRenderTargetOptions);
        this._createInternalTextures();
    }

and:

    private _createInternalTextures(): void {
        this._internalTextures = this._engine.createMultipleRenderTarget(this._size, this._multiRenderTargetOptions);
    }

Given that, I think resize should be instead:

    public resize(size: any) {
        this.releaseInternalTextures();
        this._size = size;
        this._createInternalTextures();
    }

?

1 Like

I guess it makes total sense. Would you mind creating a PR for the fix ?

Iā€™m going to do that.

Done: