Are you a resident of CA ( voter reg, driver's license etc, ) ?
Did you fill out the federal return, showing the capital gain/loss ? Did you conduct the transaction while still as CA resident or after you changed to TX ? Do you have broker's statement or 1099-B