mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
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:
parent
a446e1801f
commit
0925a529ab
6 changed files with 54 additions and 19 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue