mesa/es: Validate glTexEnv parameters in Mesa code rather than the ES wrapper