Added pure OpenGL version