From e3df6f1bbc89b13186aaf02b5ce3b2485db32dbc Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 24 Oct 2013 15:38:33 +0200 Subject: [PATCH] rpi: Only check for prematurely destroyed wl_buffers in the EGL case --- 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 6478838c..812e6e71 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) {