[PATCH 5/5] rpi: Only check for prematurely destroyed wl_buffers in the EGL case
Tomeu Vizoso
tomeu at tomeuvizoso.net
Thu Oct 24 15:38:33 CEST 2013
---
src/rpi-renderer.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/rpi-renderer.c b/src/rpi-renderer.c
index 6478838..812e6e7 100644
--- a/src/rpi-renderer.c
+++ b/src/rpi-renderer.c
@@ -1260,8 +1260,9 @@ rpi_renderer_repaint_output(struct weston_output *base,
rpir_surface_swap_pointers(view->surface);
}
- if (view->surface->egl_front->buffer_ref.buffer == NULL) {
- weston_log("warning: client unreffed current front buffer\n");
+ if (view->surface->buffer_type == BUFFER_TYPE_EGL &&
+ view->surface->egl_front->buffer_ref.buffer == NULL) {
+ weston_log("warning: client destroyed current front buffer\n");
wl_list_remove(&view->link);
if (view->handle == DISPMANX_NO_HANDLE) {
--
1.8.3.1
More information about the wayland-devel
mailing list