glx: Set ContextTag for all contexts

Currently, xorgGlxMakeCurrent() would set the context tag only for
indirect GLX contexts.

However, several other places expect to find a context for the tag or
they would raise a GLXBadContextTag error, such as WaitGL() or WaitX().

Set the context tag for direct contexts as well, to avoid raising an
error and possibly killing the client.

Thanks to Erik Kurzinger <> for spotting the issue.

Signed-off-by: Olivier Fourdan <>
Reviewed-by: Adam Jackson <>
5 jobs for glx-context in 7 minutes and 25 seconds (queued for 1 second)
Status Name Job ID Coverage
  Docker Image
passed debian-buster #10574017


  Build And Test
passed autotools #10574018


passed meson #10574019


passed meson-noglamor #10574020


passed mingw-cross-build #10574021