Gifting a gun to someone in Texas is entirely legal.  The state permits giving firearms as gifts as long as the recipient meets all the eligibility requirements to possess a firearm under state and federal laws.