Replaced some OpenGL calls.