summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinJeong Kim <minjjj.kim@samsung.com>2014-12-29 20:12:59 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-12-29 20:14:07 +0900
commit6fe870de1470239bde7fb0b78f71b882f9ad62bf (patch)
tree42ffd228a1dcde8e0eab029baf986db4fe208612
parent3f9d952774ddd8fd847906353c0cd89037880abb (diff)
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
-rw-r--r--src/modules/evas/engines/gl_x11/evas_engine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c b/src/modules/evas/engines/gl_x11/evas_engine.c
index 3721d31f00..9db3f2cf56 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)
2479 // gl_current_surface_get is in gl generic 2479 // gl_current_surface_get is in gl generic
2480 ORD(gl_current_context_get); 2480 ORD(gl_current_context_get);
2481 2481
2482 setenv("EGL_PLATFORM", "x11", 1);
2483
2482 gl_symbols(); 2484 gl_symbols();
2483 2485
2484 /* now advertise out own api */ 2486 /* now advertise out own api */