[PATCH weston 01/10] window: unbind egl surface and context on surface release

rawoul at gmail.com rawoul at gmail.com
Mon Aug 25 11:56:43 PDT 2014


From: Arnaud Vrac <avrac at freebox.fr>

Binding null read and write surfaces to an egl context is not standard
---
 clients/window.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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);
-- 
1.9.1



More information about the wayland-devel mailing list