Either you or your spouse must have been living in Texas for at least 6 months and in the county in which you’re filing for the preceding 90 days before you can file for divorce.

There are also some special exceptions for members of the military that have been stationed elsewhere.