diff options
author | Arnaud Vrac <avrac@freebox.fr> | 2014-08-25 20:56:43 +0200 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2014-08-27 16:37:44 +0300 |
commit | 38d90be5bbe8fe25aee762228b80aa0bb385f8f9 (patch) | |
tree | 6bc8b151ef2fea6ae5567289935e7389c2d73457 | |
parent | 33eb5ed574e931565659bf5bfab808952c5d0b90 (diff) | |
download | weston-38d90be5bbe8fe25aee762228b80aa0bb385f8f9.tar.gz |
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 <pekka.paalanen@collabora.co.uk>
-rw-r--r-- | clients/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/window.c b/clients/window.c index 5d64022e..85c25f7e 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); |