aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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.