add {glx,egl}2test using the GL2 API in a classic OpenGL context