compositor: Set EGL_PLATFORM env variable for each backend.
authorEgbert Eich <eich@freedesktop.org>
Tue, 10 May 2011 20:00:19 +0000 (20:00 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 10 May 2011 20:42:08 +0000 (16:42 -0400)
commite7b8d9055ef570ad05b44aef8c61cabf413a2f82
tree401b59961e6122a5b8c9e986ece6a809df0afdaa
parentb79216e7a0be5fff5aba7a36fc3812cd803ba28b
compositor: Set EGL_PLATFORM env variable for each backend.

I may have missed something, but - since the Wayland compositor
already picks a platform backend, opens a connection and initializes the
backend specific display data structure it doesn't make sense
to let egl pick a platform. If it picks a different one the
display specific data structure will most likely not match.
Thus determine the platform in the Wayland rendering backend by setting
the EGL_PLATFORM env variable.
For the client any other platform than 'wayland' doesn't seem to make
sense.
I'm not sure if I've got the the platform ofr openfwd right.

Signed-off-by: Egbert Eich <eich@freedesktop.org>
clients/window.c
compositor/compositor-drm.c
compositor/compositor-openwfd.c
compositor/compositor-wayland.c
compositor/compositor-x11.c