diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2013-01-08 19:09:01 +0300 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-01-08 15:31:08 -0500 |
commit | 52cfd61cdb02f711fc1d1d9b60ec00e294ecdd9f (patch) | |
tree | 1c63df8f2578544010a82851f6014d0426f53cbd /src/noop-renderer.c | |
parent | 94c1dfb0127394b9ec7090dee581a3368bcdc6d1 (diff) |
renderer: introduce destroy callback
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Diffstat (limited to 'src/noop-renderer.c')
-rw-r--r-- | src/noop-renderer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/noop-renderer.c b/src/noop-renderer.c index 24660ec9..a0b16797 100644 --- a/src/noop-renderer.c +++ b/src/noop-renderer.c @@ -68,7 +68,7 @@ noop_renderer_destroy_surface(struct weston_surface *surface) { } -WL_EXPORT void +static void noop_renderer_destroy(struct weston_compositor *ec) { free(ec->renderer); @@ -91,6 +91,7 @@ noop_renderer_init(struct weston_compositor *ec) renderer->create_surface = noop_renderer_create_surface; renderer->surface_set_color = noop_renderer_surface_set_color; renderer->destroy_surface = noop_renderer_destroy_surface; + renderer->destroy = noop_renderer_destroy; ec->renderer = renderer; return 0; |