render/vulkan: use addon for wlr_vk_texture

Avoids having to walk the list of all textures.
This commit is contained in:
Simon Ser 2022-09-30 15:50:54 +02:00 committed by Simon Zeni
parent 7899b97d20
commit e4efb6b601
2 changed files with 22 additions and 16 deletions

View file

@ -246,7 +246,7 @@ struct wlr_vk_texture {
// If imported from a wlr_buffer
struct wlr_buffer *buffer;
struct wl_listener buffer_destroy;
struct wlr_addon buffer_addon;
};
struct wlr_vk_texture *vulkan_get_texture(struct wlr_texture *wlr_texture);