From 5325b38dc8e84f87098d1207775c1316f5641d0f Mon Sep 17 00:00:00 2001 From: Adrian Negreanu Date: Mon, 12 Aug 2013 10:07:59 +0300 Subject: [PATCH] remove dependency on EGL_KHR_surfaceless_context cairo_egl_device_create(), which is called next, already checks if EGL_KHR_surfaceless_context is available. If not, it fallbacks to pbuffer. Signed-off-by: Adrian Negreanu --- clients/window.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/clients/window.c b/clients/window.c index d40583fb4..79d96ec47 100644 --- a/clients/window.c +++ b/clients/window.c @@ -5108,11 +5108,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");