aboutsummaryrefslogtreecommitdiff
path: root/render/vulkan
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 /render/vulkan
parent9fd28d1e8151a0dca6f1c89e4328fcad01959537 (diff)
render/texture: constify wlr_texture_update_from_buffer()
Diffstat (limited to 'render/vulkan')
-rw-r--r--render/vulkan/texture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/vulkan/texture.c b/render/vulkan/texture.c
index c636f9f5..1f70bc44 100644
--- a/render/vulkan/texture.c
+++ b/render/vulkan/texture.c
@@ -137,7 +137,7 @@ static bool write_pixels(struct wlr_vk_texture *texture,
}
static bool vulkan_texture_update_from_buffer(struct wlr_texture *wlr_texture,
- struct wlr_buffer *buffer, pixman_region32_t *damage) {
+ struct wlr_buffer *buffer, const pixman_region32_t *damage) {
struct wlr_vk_texture *texture = vulkan_get_texture(wlr_texture);
void *data;
@@ -156,7 +156,7 @@ static bool vulkan_texture_update_from_buffer(struct wlr_texture *wlr_texture,
}
int rects_len = 0;
- pixman_box32_t *rects = pixman_region32_rectangles(damage, &rects_len);
+ const pixman_box32_t *rects = pixman_region32_rectangles(damage, &rects_len);
for (int i = 0; i < rects_len; i++) {
pixman_box32_t rect = rects[i];