seoz pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=6fe870de1470239bde7fb0b78f71b882f9ad62bf
commit 6fe870de1470239bde7fb0b78f71b882f9ad62bf Author: MinJeong Kim <[email protected]> Date: Mon Dec 29 20:12:59 2014 +0900 evas/gl_x11: set EGL_PLATFORM environment variable Summary: Without EGL_PLATFORM environment variable, eglInitialize() can be failed because egl tried to load DRM platform instead of X11 platform and it tried to handle XDisplay pointer as a gbm_device pointer as well. The failure seems to be occured especially if the egl was built with DRM platform as native platform. This revision can prevent the failure by indicating proper egl platform using EGL_PLATFORM environment variable. @fix Reviewers: gwanglim, jaehwan, seoz Reviewed By: seoz Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1828 --- src/modules/evas/engines/gl_x11/evas_engine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c b/src/modules/evas/engines/gl_x11/evas_engine.c index 3721d31..9db3f2c 100644 --- a/src/modules/evas/engines/gl_x11/evas_engine.c +++ b/src/modules/evas/engines/gl_x11/evas_engine.c @@ -2479,6 +2479,8 @@ module_open(Evas_Module *em) // gl_current_surface_get is in gl generic ORD(gl_current_context_get); + setenv("EGL_PLATFORM", "x11", 1); + gl_symbols(); /* now advertise out own api */ --
