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