start using texture sets

There are really two main uses of texture sets: checking if a dmabuf
is importable, and actually importing it for the client buffer's
texture
This commit is contained in:
Austin Shafer 2022-07-27 12:02:09 -04:00
parent a446e1801f
commit 0925a529ab
6 changed files with 54 additions and 19 deletions

View file

@ -878,7 +878,8 @@ static struct wlr_texture *scene_buffer_get_texture(
struct wlr_client_buffer *client_buffer =
wlr_client_buffer_get(scene_buffer->buffer);
if (client_buffer != NULL) {
return client_buffer->texture;
return wlr_texture_set_get_tex_for_renderer(client_buffer->texture_set,
renderer);
}
scene_buffer->texture =