Remove egl display type setenv hack

No longer needed with mesa 7.12-devel egl display autodetection.
dev
Benjamin Franzke 13 years ago committed by Kristian Høgsberg
parent 48c4ea2dbd
commit 91eacca38b
  1. 1
      clients/simple-egl.c
  2. 1
      clients/window.c
  3. 1
      compositor/compositor-drm.c
  4. 1
      compositor/compositor-openwfd.c
  5. 1
      compositor/compositor-wayland.c
  6. 1
      compositor/compositor-x11.c
  7. 1
      compositor/meego-tablet-shell.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);

@ -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");

@ -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);

@ -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) {

@ -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");

@ -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");

@ -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)

Loading…
Cancel
Save