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/gles2/texture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render/gles2') diff --git a/render/gles2/texture.c b/render/gles2/texture.c index 9dccc526..63360d48 100644 --- a/render/gles2/texture.c +++ b/render/gles2/texture.c @@ -174,7 +174,8 @@ static struct wlr_gles2_texture *gles2_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