Comment 11 for bug 733403

Revision history for this message
Matt Sealey (mwsealey) wrote :

BTW I still can't confirm this benchmark breaks outside of our own test programs due to the "Error: couldn't get X Visual" error.

   if (!eglGetConfigAttrib(data->dpy, config, EGL_NATIVE_VISUAL_ID, &vid)) {
      printf("Error: eglGetConfigAttrib() failed\n");
      exit(1);
   }

   /* The X window visual must match the EGL config */
   visTemplate.visualid = vid;
   visInfo = XGetVisualInfo(data->xdpy, VisualIDMask, &visTemplate, &num_visuals);
   if (!visInfo) {
      printf("Error: couldn't get X visual\n");
      exit(1);
   }

Can anyone explain what is going on here so I can work out how we fix it? It doesn't make sense to me that eglGetConfigAttrib() succeeds but then you can't XGetVisualInfo on the returned data..