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:
MinJeong Kim 2014-12-29 20:12:59 +09:00 committed by Daniel Juyung Seo
parent 3f9d952774
commit 6fe870de14
1 changed files with 2 additions and 0 deletions

View File

@ -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 */