It depends on what your intent was. Did you move to Texas for what you thought would be a permanent move? Did you know your Texas stay was going to be temporary or transitory?
See California's Pub 1031, Guidelines for Determining Resident Status, for more details. They get into it in instruction E on page 3.
https://www.ftb.ca.gov/forms/2016/16_1031.pdf