Each game does it differently. There are some vendor specific extensions and some games have tables based on GL vendor strings.