Your description is close enough. 50% of the state gets 47 delegates, 50% of each congressional district (there are 36 congressional districts) gets 3 delegates per district. Less than that (50%) margin to the winner and the CD delegates are distributed proportionally to the top two. It's possible for three candidates to get CD delegates, but that's down in the weeds in this race.
Texas Republican Delegation 2016