From 91eacca38bafbb7fccb8ba60ac8058dc4bda7406 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 9 Aug 2011 14:33:45 +0200 Subject: Remove egl display type setenv hack No longer needed with mesa 7.12-devel egl display autodetection. --- clients/simple-egl.c | 1 - clients/window.c | 1 - compositor/compositor-drm.c | 1 - compositor/compositor-openwfd.c | 1 - compositor/compositor-wayland.c | 1 - compositor/compositor-x11.c | 1 - compositor/meego-tablet-shell.c | 1 - 7 files changed, 7 deletions(-) diff --git a/clients/simple-egl.c b/clients/simple-egl.c index ec09d683..35241378 100644 --- a/clients/simple-egl.c +++ b/clients/simple-egl.c @@ -106,7 +106,6 @@ init_egl(struct display *display) EGLint major, minor, n; EGLBoolean ret; - setenv("EGL_PLATFORM", "wayland", 1); display->egl.dpy = eglGetDisplay(display->display); assert(display->egl.dpy); diff --git a/clients/window.c b/clients/window.c index bc657908..bb0e5d81 100644 --- a/clients/window.c +++ b/clients/window.c @@ -1852,7 +1852,6 @@ init_egl(struct display *d) EGL_NONE }; - setenv("EGL_PLATFORM", "wayland", 1); d->dpy = eglGetDisplay(d->display); if (!eglInitialize(d->dpy, &major, &minor)) { fprintf(stderr, "failed to initialize display\n"); diff --git a/compositor/compositor-drm.c b/compositor/compositor-drm.c index 36136552..e1e94bc9 100644 --- a/compositor/compositor-drm.c +++ b/compositor/compositor-drm.c @@ -331,7 +331,6 @@ init_egl(struct drm_compositor *ec, struct udev_device *device) return -1; } - setenv("EGL_PLATFORM", "drm", 1); ec->drm.fd = fd; ec->gbm = gbm_create_device(ec->drm.fd); ec->base.display = eglGetDisplay(ec->gbm); diff --git a/compositor/compositor-openwfd.c b/compositor/compositor-openwfd.c index 71920409..144e4abf 100644 --- a/compositor/compositor-openwfd.c +++ b/compositor/compositor-openwfd.c @@ -133,7 +133,6 @@ init_egl(struct wfd_compositor *ec) return -1; ec->wfd_fd = fd; - setenv("EGL_PLATFORM", "drm", 1); ec->gbm = gbm_create_device(ec->wfd_fd); ec->base.display = eglGetDisplay(ec->gbm); if (ec->base.display == NULL) { diff --git a/compositor/compositor-wayland.c b/compositor/compositor-wayland.c index 9755c0ad..d143a60b 100644 --- a/compositor/compositor-wayland.c +++ b/compositor/compositor-wayland.c @@ -113,7 +113,6 @@ wayland_compositor_init_egl(struct wayland_compositor *c) EGL_NONE }; - setenv("EGL_PLATFORM", "wayland", 1); c->base.display = eglGetDisplay(c->parent.display); if (c->base.display == NULL) { fprintf(stderr, "failed to create display\n"); diff --git a/compositor/compositor-x11.c b/compositor/compositor-x11.c index f959e78d..72180291 100644 --- a/compositor/compositor-x11.c +++ b/compositor/compositor-x11.c @@ -116,7 +116,6 @@ x11_compositor_init_egl(struct x11_compositor *c) EGL_NONE }; - setenv("EGL_PLATFORM", "x11", 1); c->base.display = eglGetDisplay(c->dpy); if (c->base.display == NULL) { fprintf(stderr, "failed to create display\n"); diff --git a/compositor/meego-tablet-shell.c b/compositor/meego-tablet-shell.c index 6a797041..908f53e4 100644 --- a/compositor/meego-tablet-shell.c +++ b/compositor/meego-tablet-shell.c @@ -492,7 +492,6 @@ launch_ux_daemon(struct meego_tablet_shell *shell) snprintf(s, sizeof s, "%d", sv[1]); setenv("WAYLAND_SOCKET", s, 1); - setenv("EGL_PLATFORM", "wayland", 1); setenv("QT_QPA_PLATFORM", "waylandgl", 1); if (execl("/usr/libexec/meego-ux-daemon", "/usr/libexec/meego-ux-daemon", NULL) < 0) -- cgit v1.2.3