evas/gl_x11: set EGL_PLATFORM environment variable
authorMinJeong Kim <minjjj.kim@samsung.com>
Thu, 19 Mar 2015 08:52:53 +0000 (17:52 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 19 Mar 2015 08:52:54 +0000 (17:52 +0900)
commitc964c7236622c34429691f1262492fb9397e135a
tree9f5217a6c816d98b19c7439d3fbffd22fe4c3520
parent3cd2801be7ade3a347c2d9ca73df48d133f66c22
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, and additionally it will unset
EGL_PLATFORM environment value when the engine free its info.

@fix

Reviewers: gwanglim, seoz, jaehwan, cedric, raster

Subscribers: raster, cedric

Differential Revision: https://phab.enlightenment.org/D1844
src/modules/evas/engines/gl_x11/evas_engine.c