message: Only query fbconfig for valid non-NULL context. Closes
diff: @@ -367,18 +367,23 @@ HOOK_EXPORT Bool glXMakeContextCurrent(Display *dpy, GLXDrawable draw, GLXDrawab
  data.wnd = draw;
  data.ctx = ctx;
  + GLXFBConfig *config = NULL;
  +
  + if(ctx)
  + {
  int fbconfigid = -1;
  GLX.glXQueryContext(dpy, ctx, GLX_FBCONFIG_ID, &fbconfigid);
  int attribs[] = {GLX_FBCONFIG_ID, fbconfigid, 0};
  int numElems = 0;
  - GLXFBConfig *config = GLX.glXChooseFBConfig(dpy, DefaultScreen(dpy), attribs, &numElems);
  + config = GLX.glXChooseFBConfig(dpy, DefaultScreen(dpy), attribs, &numElems);
  if(config)
  data.cfg = GLX.glXGetVisualFromFBConfig(dpy, *config);
  else
  data.cfg = NULL;
  + }
  glxhook.driver.ActivateContext(data);
  