From 9579d62a160821a107763325a515d3aee0a1e158 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Fri, 10 Sep 2021 13:25:42 -0400 Subject: types/buffer: make {begin,end}_data_ptr_access part of the public API --- render/gles2/texture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render/gles2') diff --git a/render/gles2/texture.c b/render/gles2/texture.c index 64ac05ac..293b7a19 100644 --- a/render/gles2/texture.c +++ b/render/gles2/texture.c @@ -346,11 +346,11 @@ struct wlr_texture *gles2_texture_from_buffer(struct wlr_renderer *wlr_renderer, struct wlr_dmabuf_attributes dmabuf; if (wlr_buffer_get_dmabuf(buffer, &dmabuf)) { return gles2_texture_from_dmabuf_buffer(renderer, buffer, &dmabuf); - } else if (buffer_begin_data_ptr_access(buffer, + } else if (wlr_buffer_begin_data_ptr_access(buffer, WLR_BUFFER_DATA_PTR_ACCESS_READ, &data, &format, &stride)) { struct wlr_texture *tex = gles2_texture_from_pixels(wlr_renderer, format, stride, buffer->width, buffer->height, data); - buffer_end_data_ptr_access(buffer); + wlr_buffer_end_data_ptr_access(buffer); return tex; } else { return NULL; -- cgit v1.2.3