Refactor to use GL3 exclusively.