RenderTargetCount assignment timing fix