added support for OpenGL 2.1