How to resize a colour buffer/render target texture at runtime

Solved it Thanks. You need to destroy the renderTarget and then create it again.

 this.app.graphicsDevice.on('resizecanvas', function(width, height) {
        console.log('canvas resized', width, height);
         this.renderTarget.destroyTextureBuffers();
         this.setupRenderTarget();
    }.bind(this));
1 Like

you might want to call this.renderTarget.destroy(); as well

1 Like

Great! Thanks !!