aboutsummaryrefslogtreecommitdiff
path: root/render/shm_allocator.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/shm_allocator.c')
-rw-r--r--render/shm_allocator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/shm_allocator.c b/render/shm_allocator.c
index 3bfb62e5..8da7bea6 100644
--- a/render/shm_allocator.c
+++ b/render/shm_allocator.c
@@ -31,9 +31,10 @@ static bool buffer_get_shm(struct wlr_buffer *wlr_buffer,
}
static bool buffer_get_data_ptr(struct wlr_buffer *wlr_buffer, void **data,
- size_t *stride) {
+ uint32_t *format, size_t *stride) {
struct wlr_shm_buffer *buffer = shm_buffer_from_buffer(wlr_buffer);
*data = buffer->data;
+ *format = buffer->shm.format;
*stride = buffer->shm.stride;
return true;
}