[PATCH] compositor-*: check for surfaceless_gles2 instead of surfaceless_opengl

Kristian Høgsberg krh at bitplanet.net
Tue Nov 1 08:19:05 PDT 2011


On Tue, Nov 1, 2011 at 10:37 AM, Ander Conselvan de Oliveira
<ander.conselvan.de.oliveira at intel.com> wrote:
> All the compositors are using GLES2 so check for the appropriate
> surfaceless extension.

Indeed, thanks.

Kristian

> Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira at intel.com>
> ---
>  compositor/compositor-drm.c     |    4 ++--
>  compositor/compositor-openwfd.c |    4 ++--
>  compositor/compositor-wayland.c |    4 ++--
>  compositor/compositor-x11.c     |    4 ++--
>  4 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/compositor/compositor-drm.c b/compositor/compositor-drm.c
> index f11b788..02214f5 100644
> --- a/compositor/compositor-drm.c
> +++ b/compositor/compositor-drm.c
> @@ -344,8 +344,8 @@ init_egl(struct drm_compositor *ec, struct udev_device *device)
>        }
>
>        extensions = eglQueryString(ec->base.display, EGL_EXTENSIONS);
> -       if (!strstr(extensions, "EGL_KHR_surfaceless_opengl")) {
> -               fprintf(stderr, "EGL_KHR_surfaceless_opengl not available\n");
> +       if (!strstr(extensions, "EGL_KHR_surfaceless_gles2")) {
> +               fprintf(stderr, "EGL_KHR_surfaceless_gles2 not available\n");
>                return -1;
>        }
>
> diff --git a/compositor/compositor-openwfd.c b/compositor/compositor-openwfd.c
> index c507ad9..4cda851 100644
> --- a/compositor/compositor-openwfd.c
> +++ b/compositor/compositor-openwfd.c
> @@ -151,8 +151,8 @@ init_egl(struct wfd_compositor *ec)
>        }
>
>        extensions = eglQueryString(ec->base.display, EGL_EXTENSIONS);
> -       if (!strstr(extensions, "EGL_KHR_surfaceless_opengl")) {
> -               fprintf(stderr, "EGL_KHR_surfaceless_opengl not available\n");
> +       if (!strstr(extensions, "EGL_KHR_surfaceless_gles2")) {
> +               fprintf(stderr, "EGL_KHR_surfaceless_gles2 not available\n");
>                return -1;
>        }
>
> diff --git a/compositor/compositor-wayland.c b/compositor/compositor-wayland.c
> index 4f0b025..790fe96 100644
> --- a/compositor/compositor-wayland.c
> +++ b/compositor/compositor-wayland.c
> @@ -129,8 +129,8 @@ wayland_compositor_init_egl(struct wayland_compositor *c)
>        }
>
>        extensions = eglQueryString(c->base.display, EGL_EXTENSIONS);
> -       if (!strstr(extensions, "EGL_KHR_surfaceless_opengl")) {
> -               fprintf(stderr, "EGL_KHR_surfaceless_opengl not available\n");
> +       if (!strstr(extensions, "EGL_KHR_surfaceless_gles2")) {
> +               fprintf(stderr, "EGL_KHR_surfaceless_gles2 not available\n");
>                return -1;
>        }
>
> diff --git a/compositor/compositor-x11.c b/compositor/compositor-x11.c
> index 4962b5e..544d7e2 100644
> --- a/compositor/compositor-x11.c
> +++ b/compositor/compositor-x11.c
> @@ -134,8 +134,8 @@ x11_compositor_init_egl(struct x11_compositor *c)
>        }
>
>        extensions = eglQueryString(c->base.display, EGL_EXTENSIONS);
> -       if (!strstr(extensions, "EGL_KHR_surfaceless_opengl")) {
> -               fprintf(stderr, "EGL_KHR_surfaceless_opengl not available\n");
> +       if (!strstr(extensions, "EGL_KHR_surfaceless_gles2")) {
> +               fprintf(stderr, "EGL_KHR_surfaceless_gles2 not available\n");
>                return -1;
>        }
>
> --
> 1.7.4.1
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>


More information about the wayland-devel mailing list