eglGetDisplay() is broken for Wayland
@mol
Submitted by Michael Olbrich Assigned to Wayland bug list
Link to original bug (#103757)
Description
_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[1] on the wayland-devel list, but it seems nothing happened since then.
[1] https://lists.freedesktop.org/archives/wayland-devel/2014-October/017783.html
Version: git