From 7d272bd430b248fe8785c6e8aa335786018e7264 Mon Sep 17 00:00:00 2001 From: Taekyun Kim Date: Tue, 22 Sep 2015 11:26:03 +0900 Subject: [PATCH] pepper: Ignore surfaces having no attached buffer Change-Id: I9d5ca5041af3b6dd0daa63364127b6ad6bb940ac --- src/lib/pepper/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/pepper/output.c b/src/lib/pepper/output.c index 3107dab..430b091 100644 --- a/src/lib/pepper/output.c +++ b/src/lib/pepper/output.c @@ -120,7 +120,8 @@ output_repaint(pepper_output_t *output) /* Build a list of views in sorted z-order that are visible on the given output. */ pepper_list_for_each(view, &output->compositor->view_list, compositor_link) { - if (!view->active || !(view->output_overlap & (1 << output->id)) || !view->surface) + if (!view->active || !(view->output_overlap & (1 << output->id)) || + !view->surface || !view->surface->buffer.buffer) { /* Detach from the previously assigned plane. */ pepper_view_assign_plane(view, output, NULL); -- 2.7.4