mirror of
https://gitlab.freedesktop.org/mesa/vulkan-wsi-layer.git
synced 2025-12-20 04:30:11 +01:00
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:
parent
a0947a5ae8
commit
d900831556
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue