aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2022-12-01 04:41:43 -0500
committerAlexander Orzechowski <alex@ozal.ski>2022-12-01 04:41:43 -0500
commitdb0e962368244c3171a8f93466eda231dccf2bc7 (patch)
tree8ccc4ad097ce3ad4afa58ae5290c4bc2859caec3 /include/wlr
parentf103dc74d89c88a8e1865ce47843906b0aaa8380 (diff)
wlr_texture: Expose owning renderer
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, 3 insertions, 1 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index a8ed5825..07b26fbc 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -59,7 +59,7 @@ struct wlr_texture_impl {
void (*destroy)(struct wlr_texture *texture);
};
-void wlr_texture_init(struct wlr_texture *texture,
+void wlr_texture_init(struct wlr_texture *texture, struct wlr_renderer *rendener,
const struct wlr_texture_impl *impl, uint32_t width, uint32_t height);
#endif
diff --git a/include/wlr/render/wlr_texture.h b/include/wlr/render/wlr_texture.h
index 8d401518..87ed993f 100644
--- a/include/wlr/render/wlr_texture.h
+++ b/include/wlr/render/wlr_texture.h
@@ -21,6 +21,8 @@ struct wlr_texture_impl;
struct wlr_texture {
const struct wlr_texture_impl *impl;
uint32_t width, height;
+
+ struct wlr_renderer *renderer;
};
/**