From 228a99d4bc417794aedae9f7e51eb869bfda5009 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Thu, 18 Oct 2012 18:57:47 +0200 Subject: [PATCH] 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 --- src/uterm_video_drm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/uterm_video_drm.c b/src/uterm_video_drm.c index fd62ece..a54b603 100644 --- a/src/uterm_video_drm.c +++ b/src/uterm_video_drm.c @@ -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);