Fix queue destroy warning on the Wayland backend

Fixes an issue where the wl_queue used for the buffer events was
destroyed before destroying the wl_buffer objects.

Signed-off-by: Iason Paraskevopoulos <iason.paraskevopoulos@arm.com>
Change-Id: Ibe25f1f1f2100dda734c5f5788209ddf89c6d47d
This commit is contained in:
Iason Paraskevopoulos 2025-11-28 16:41:05 +00:00
parent a0947a5ae8
commit d900831556

View file

@ -97,6 +97,11 @@ swapchain::~swapchain()
if (m_buffer_queue != nullptr)
{
for (auto &img : m_swapchain_images)
{
img.set_data(util::unique_ptr<swapchain_image_data>());
}
wl_display_roundtrip_queue(m_display, m_buffer_queue);
wl_event_queue_destroy(m_buffer_queue);
}