From db0e962368244c3171a8f93466eda231dccf2bc7 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Thu, 1 Dec 2022 04:41:43 -0500 Subject: wlr_texture: Expose owning renderer --- include/wlr/render/interface.h | 2 +- include/wlr/render/wlr_texture.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include/wlr') 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; }; /** -- cgit v1.2.3