dynamically switch between OpenGL 2 and OpenGL 3 (test gwen)