If you take prescription drugs can you be prosecuted for DWI in Texas?

Yes.  I wrote this article several years ago for the Texas District and County Attorney Association.

Web access:

When ‘intoxicated’ is a defendant’s ‘normal’

PDF version:

When ‘intoxicated’ is a defendant’s ‘normal’ _ Texas District & County Attorneys Association