A look at the law in Texas and two other states