Fix bug in the selection of GL constants.