From: Arnaud Vrac Date: Mon, 25 Aug 2014 18:56:43 +0000 (+0200) Subject: window: unbind egl surface and context on surface release X-Git-Tag: upstream/0.1.8~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38d90be5bbe8fe25aee762228b80aa0bb385f8f9;p=profile%2Fivi%2Fweston-ivi-shell.git window: unbind egl surface and context on surface release Binding null read and write surfaces to an egl context is not standard Reviewed-by: Pekka Paalanen --- diff --git a/clients/window.c b/clients/window.c index 5d64022..85c25f7 100644 --- a/clients/window.c +++ b/clients/window.c @@ -576,8 +576,8 @@ egl_window_surface_release(struct toysurface *base) if (!device) return; - if (!eglMakeCurrent(surface->display->dpy, NULL, NULL, - surface->display->argb_ctx)) + if (!eglMakeCurrent(surface->display->dpy, + EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)) fprintf(stderr, "failed to make context current\n"); cairo_device_release(device);