egl: fix OpenGL 3.1 context creation