The summer heat is no joke in Texas. That means it's dangerous for any person or any pet to be left in a locked vehicle with the windows rolled up and no AC on.
There are laws on the book sin Texas that have either become outdated or are just weird. Thing is, they're still enforceable if law enforcement or a judge deems it necessary.