xwayland: fix GL version check for GLES only devices

We currently bail out early for GLES only devices, and call
epoxy_gl_version() too early for GLES only that will make GLES only
devices return NULL for glGetString(GL_RENDERER).

Let's also add a check to see if we need to recreate the context to
avoid pointless warnings for GLES only devices as suggested by
Olivier Fourdan <ofourdan@redhat.com>.

Fixes: a506b4ec - xwayland: make context current to check GL version
Signed-off-by: Tony Lindgren <tony@atomide.com>
4 jobs for xwayland-gles-fix in 6 minutes and 23 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Docker Image
passed debian-buster #6182565

00:00:10

 
  Build And Test
passed autotools #6182566

00:06:12

passed meson #6182567

00:02:27

passed meson-noglamor #6182568

00:02:13