diff options
author | Benjamin Franzke <[email protected]> | 2011-05-06 19:13:29 +0200 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2011-06-21 13:11:43 -0400 |
commit | 0cb356dd5c93f745bb1b17987d206a24ab708f31 (patch) | |
tree | 6735ec2ab93e221e73fb8b0ee483d4db413976e4 /src/egl/wayland/wayland-drm | |
parent | 8c91d751c8cacf5ed86ea8c4c4f024b3d50056e5 (diff) |
egl_dri2/wayland: Hook up new buffer.release event
Diffstat (limited to 'src/egl/wayland/wayland-drm')
-rw-r--r-- | src/egl/wayland/wayland-drm/wayland-drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/egl/wayland/wayland-drm/wayland-drm.c b/src/egl/wayland/wayland-drm/wayland-drm.c index 6cc442b9d53..3023cd02b07 100644 --- a/src/egl/wayland/wayland-drm/wayland-drm.c +++ b/src/egl/wayland/wayland-drm/wayland-drm.c @@ -88,17 +88,17 @@ drm_create_buffer(struct wl_client *client, struct wl_drm *drm, { struct wl_drm_buffer *buffer; - buffer = malloc(sizeof *buffer); + buffer = calloc(1, sizeof *buffer); if (buffer == NULL) { wl_client_post_no_memory(client); return; } buffer->drm = drm; - buffer->buffer.compositor = NULL; buffer->buffer.width = width; buffer->buffer.height = height; buffer->buffer.visual = visual; + buffer->buffer.client = client; if (!visual || visual->object.interface != &wl_visual_interface) { wl_client_post_error(client, &drm->object, |