aboutsummaryrefslogtreecommitdiff
path: root/render/allocator.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/allocator.c')
-rw-r--r--render/allocator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/allocator.c b/render/allocator.c
index 4f87d95a..aade40a9 100644
--- a/render/allocator.c
+++ b/render/allocator.c
@@ -81,7 +81,8 @@ struct wlr_buffer *wlr_allocator_create_buffer(struct wlr_allocator *alloc,
return NULL;
}
if (alloc->buffer_caps & WLR_BUFFER_CAP_DATA_PTR) {
- assert(buffer->impl->get_data_ptr);
+ assert(buffer->impl->begin_data_ptr_access &&
+ buffer->impl->end_data_ptr_access);
}
if (alloc->buffer_caps & WLR_BUFFER_CAP_DMABUF) {
assert(buffer->impl->get_dmabuf);