mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-02 04:58:00 +02:00
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>
This commit is contained in:
parent
33eb5ed574
commit
38d90be5bb
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue