remove dependency on EGL_KHR_surfaceless_context
authorAdrian Negreanu <adrian.m.negreanu@intel.com>
Mon, 12 Aug 2013 07:07:59 +0000 (10:07 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 12 Aug 2013 23:54:10 +0000 (16:54 -0700)
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 <adrian.m.negreanu@intel.com>
clients/window.c

index ae1bc6a..3410354 100644 (file)
@@ -5135,11 +5135,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");