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 --- render/vulkan/texture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render/vulkan/texture.c') diff --git a/render/vulkan/texture.c b/render/vulkan/texture.c index d1431556..b03cec4a 100644 --- a/render/vulkan/texture.c +++ b/render/vulkan/texture.c @@ -252,7 +252,8 @@ static struct wlr_vk_texture *vulkan_texture_create( wlr_log_errno(WLR_ERROR, "Allocation failed"); return NULL; } - wlr_texture_init(&texture->wlr_texture, &texture_impl, width, height); + wlr_texture_init(&texture->wlr_texture, &renderer->wlr_renderer, + &texture_impl, width, height); texture->renderer = renderer; wl_list_insert(&renderer->textures, &texture->link); return texture; -- cgit v1.2.3