I am unsure of the legal definition of self defense, but I do not think it should cover this. The guy that got the gun started hostilities.
Then, you should have a look at what Texas Penal Code says. The hostilities started long before the homeowner got the gun, and certainly were in full bloom after the homeowner told the trespasser to leave. God bless Texas.