Really? I found this for NY on the google, which is similar to Texas-
The drinking of alcoholic beverages, or the possession of an open container containing an alcoholic beverage, in a motor vehicle located upon the public highways or right-of-way public highway is prohibited.