Fix bug involving base GL types.