diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-09-10 13:25:42 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-09-15 11:50:44 +0200 |
commit | 9579d62a160821a107763325a515d3aee0a1e158 (patch) | |
tree | e1d13512ccd66012c301c0bdc6604f9ef050639c /render/gles2/texture.c | |
parent | 6cb25ebad728612817e3f438c482e04180efe95e (diff) |
types/buffer: make {begin,end}_data_ptr_access part of the public API
Diffstat (limited to 'render/gles2/texture.c')
-rw-r--r-- | render/gles2/texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |