Must specify EGL_PLATFORM when running compositor?

Casey Dahlin cdahlin at redhat.com
Tue Apr 26 22:22:46 PDT 2011


I built Wayland for the first time since EGL grew specific support for it, and
I ran into a strange issue. I used the instructions at
http://wayland.freedesktop.org/building.html pretty much exactly, but when
running the compositor, I got a segmentation fault. The only way to avoid this
was to run the compositor with EGL_PLATFORM=x11 in the environment. Otherwise
EGL would attempt to load the wayland driver, and in the process attempt to use
the X11 "Display *" the compositor had allocated as a proxy "struct wl_display"

I don't see how this problem is supposed to be avoided looking at the EGL code,
and it seems rather silly that the EGL code would make such a mistake. Is it
supposed to be this way?

--CJD


More information about the wayland-devel mailing list