Various small changes related to render targets.