diff --git a/src/bin/e_comp_wl_dmabuf.c b/src/bin/e_comp_wl_dmabuf.c index f8c1c6a1b..df00edaf5 100644 --- a/src/bin/e_comp_wl_dmabuf.c +++ b/src/bin/e_comp_wl_dmabuf.c @@ -125,9 +125,10 @@ params_add(struct wl_client *client, struct wl_resource *params_resource, { buffer->attributes.modifier[plane_idx] = ((uint64_t)modifier_hi << 32) | modifier_lo; - buffer->attributes.n_planes++; } + buffer->attributes.n_planes++; + static void linux_dmabuf_wl_buffer_destroy(struct wl_client *client, struct wl_resource *resource) {