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

@ -153,6 +153,7 @@ bool wlr_render_subtexture_with_matrix(struct wlr_renderer *r,
struct wlr_texture *texture, const struct wlr_fbox *box,
const float matrix[static 9], float alpha) {
assert(r->rendering);
assert(texture->renderer == r);
return r->impl->render_subtexture_with_matrix(r, texture,
box, matrix, alpha);
}