Fixed bug where the render target is updated instead of the default output when the window is resized.