wlr_texture: Expose owning renderer

This commit is contained in:
Alexander Orzechowski 2022-12-01 04:41:43 -05:00
parent f103dc74d8
commit db0e962368
7 changed files with 14 additions and 6 deletions

View file

@ -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;