Change code in accord to new libOpenGL implementation.