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

@ -354,8 +354,8 @@ static struct wlr_pixman_texture *pixman_texture_create(
return NULL;
}
wlr_texture_init(&texture->wlr_texture, &texture_impl, width, height);
texture->renderer = renderer;
wlr_texture_init(&texture->wlr_texture, &renderer->wlr_renderer,
&texture_impl, width, height);
texture->format_info = drm_get_pixel_format_info(drm_format);
if (!texture->format_info) {