uterm: video: drm: do not set EGL_DISPLAY

EGL_DISPLAY is a no-op and we probably want to set EGL_PLATFORM. However,
it doesn't make any sense to set it, because EGL should be able to
properly detect the platform.
If this doesn't work on your machine, you should really try fixing your
environment before forcing this. If there are corner cases where this
doesn't work, you should file a bug against mesa.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-10-18 18:57:47 +02:00
parent 32677b496e
commit 228a99d4bc

View File

@ -1032,7 +1032,6 @@ static int video_init(struct uterm_video *video, const char *node)
goto err_close;
}
setenv("EGL_DISPLAY", "drm", 1);
drm->disp = eglGetDisplay((EGLNativeDisplayType) drm->gbm);
if (!drm->disp) {
log_err("cannot retrieve egl display for %s", node);