The number of electors to the electoral college are chosen by the number of congressional districts and 1 for each state senator in a state regardless of how those maps are drawn.
Texas has 38 congressional districts and 2 senators from the state, so they have 40 electors to the electoral college. That number does not change regardless how the maps are drawn. Same for every other state in the country.
Gerrymandering only impacts the House of Representatives and no impact on the president or any other government positions.
Gerrymandering does affect the electoral college, which affects the presidency.
All states except Maine and Nebraska use a party block voting, or general ticket method, to choose their electors, meaning all their electors go to one winning ticket.
This system has a winner-take-all nature similar to first-past-the-post voting for single-member districts, which is vulnerable to gerrymandering and majority reversals.
The number of electors to the electoral college are chosen by the number of congressional districts and 1 for each state senator in a state regardless of how those maps are drawn.
Texas has 38 congressional districts and 2 senators from the state, so they have 40 electors to the electoral college. That number does not change regardless how the maps are drawn. Same for every other state in the country.