Added some OpenGL specific code.