xwayland: make context current to check GL version

`glGetString(GL_VERSION)` will return NULL without a current context.

Commit dabc7d8b (“xwayland: Fall back to GLES2 if we don't get at least
GL 2.1 in glamor”) would check the context is created, but it is made
current just after, so the call to `epoxy_gl_version()` would return 0,
hence defeating the version check.

Make the context current prior to call `epoxy_gl_version()`.

Fixes: dabc7d8b - xwayland: Fall back to GLES2 if we don't get at least
                  GL 2.1 in glamor
Closes: xorg/xserver#932
xorg/xserver!324
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
3 jobs for issue932 in 5 minutes and 58 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Docker Image
passed #895642
debian-testing

00:00:28

 
  Build And Test
passed #895643
autotools-build-and-test

00:05:29

passed #895644
meson-build-and-test

00:01:07