forked from enlightenment/efl
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
This commit is contained in:
parent
3f9d952774
commit
6fe870de14
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue