[PATCH] remove dependency on EGL_KHR_surfaceless_context

Kristian Høgsberg hoegsberg at gmail.com
Mon Aug 12 16:26:15 PDT 2013


On Mon, Aug 12, 2013 at 10:07:59AM +0300, Adrian Negreanu wrote:
> From: Adrian Negreanu <adrian.m.negreanu at intel.com>
> 
> cairo_egl_device_create(), which is called next,
> already checks if EGL_KHR_surfaceless_context is
> available. If not, it fallbacks to pbuffer.

Nice, thanks.

Kristian

> Signed-off-by: Adrian Negreanu <adrian.m.negreanu at intel.com>
> ---
>  clients/window.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/clients/window.c b/clients/window.c
> index cbf8bf5..f212aca 100644
> --- a/clients/window.c
> +++ b/clients/window.c
> @@ -4899,11 +4899,6 @@ init_egl(struct display *d)
>  		return -1;
>  	}
>  
> -	if (!eglMakeCurrent(d->dpy, NULL, NULL, d->argb_ctx)) {
> -		fprintf(stderr, "failed to make EGL context current\n");
> -		return -1;
> -	}
> -
>  	d->argb_device = cairo_egl_device_create(d->dpy, d->argb_ctx);
>  	if (cairo_device_status(d->argb_device) != CAIRO_STATUS_SUCCESS) {
>  		fprintf(stderr, "failed to get cairo EGL argb device\n");
> -- 
> 1.8.0
> 
> _______________________________________________
> 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