I assume you are a resident of CA and non-resident of TX.
Your resident state will tax you on all the income regardless of where earned.
Then they give you a credit if you paid taxes to the other state. With the other state being TX with not state income tax, then you get not credit for taxes paid to another state.