For "Error: couldn't get X visual", could you please print out the visual id number returned by eglGetConfigAttrib? And compare it with supported visual list returned by xdpyinfo.
For "Error: couldn't get X visual", could you please print out the visual id number returned by eglGetConfigAttrib? And compare it with supported visual list returned by xdpyinfo.