Uses a more general and more robust detection of the proper GL
abstraction to use