Added OpenGL version detection.