diff --git a/libweston/noop-renderer.c b/libweston/noop-renderer.c index 0fb33e4e..a7a1d5df 100644 --- a/libweston/noop-renderer.c +++ b/libweston/noop-renderer.c @@ -63,7 +63,14 @@ noop_renderer_attach(struct weston_surface *es, struct weston_buffer *buffer) if (!buffer) return; - if (buffer->type != WESTON_BUFFER_SHM) { + switch (buffer->type) { + case WESTON_BUFFER_SOLID: + /* no-op, early exit */ + return; + case WESTON_BUFFER_SHM: + /* fine */ + break; + default: weston_log("No-op renderer supports only SHM buffers\n"); return; }