projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33eb5ed
)
window: unbind egl surface and context on surface release
author
Arnaud Vrac
<avrac@freebox.fr>
Mon, 25 Aug 2014 18:56:43 +0000
(20:56 +0200)
committer
Pekka Paalanen
<pekka.paalanen@collabora.co.uk>
Wed, 27 Aug 2014 13:37:44 +0000
(16:37 +0300)
Binding null read and write surfaces to an egl context is not standard
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index
5d64022
..
85c25f7
100644
(file)
--- 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);