mesa: refactor: move glTexEnv-related functions into new texenv.c file