aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-10-24 12:54:03 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-11-11 23:11:17 +0000
commit6baf045590387f05c42b1302ee0e90385ef26d07 (patch)
treeb0f42a998f52a41221fa4d807ba8ca9564f7a5df /include/wlr
parent9fd28d1e8151a0dca6f1c89e4328fcad01959537 (diff)
render/texture: constify wlr_texture_update_from_buffer()
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/render/interface.h2
-rw-r--r--include/wlr/render/wlr_texture.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index e347f29b..ed7c4c8f 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -55,7 +55,7 @@ void wlr_renderer_init(struct wlr_renderer *renderer,
struct wlr_texture_impl {
bool (*update_from_buffer)(struct wlr_texture *texture,
- struct wlr_buffer *buffer, pixman_region32_t *damage);
+ struct wlr_buffer *buffer, const pixman_region32_t *damage);
void (*destroy)(struct wlr_texture *texture);
};
diff --git a/include/wlr/render/wlr_texture.h b/include/wlr/render/wlr_texture.h
index 5d4b0b61..8d401518 100644
--- a/include/wlr/render/wlr_texture.h
+++ b/include/wlr/render/wlr_texture.h
@@ -48,7 +48,7 @@ struct wlr_texture *wlr_texture_from_dmabuf(struct wlr_renderer *renderer,
* region needs to be updated.
*/
bool wlr_texture_update_from_buffer(struct wlr_texture *texture,
- struct wlr_buffer *buffer, pixman_region32_t *damage);
+ struct wlr_buffer *buffer, const pixman_region32_t *damage);
/**
* Destroys the texture.