eglGetDisplay() is broken for Wayland
Submitted by Michael Olbrich
Assigned to Wayland bug list
_eglNativePlatformDetectNativeDisplay() (called by eglGetDisplay()) detects Wayland by checking if the native display object starts with a pointer to wl_display_interface.
Unfortunately wl_display_interface is defined in both libwayland-server.so and libwayland-client.so. libEGL links to both and in all my tests it always picks the one from libwayland-server.so. The wl_display object passed as native display however contains the version from libwayland-client.so so the check fails.
There is an old thread about this on the wayland-devel list, but it seems nothing happened since then.