mirror of
https://gitlab.freedesktop.org/mesa/vulkan-wsi-layer.git
synced 2026-05-05 06:28:02 +02:00
Missing return wsi_alloc_utils.hpp in WSI layer
Ensure the move-assignment operator in swapchain_wsialloc_allocator returns *this on all code paths. This avoids undefined behavior and satisfies the function’s return type requirements. Signed-off-by: Maged Elnaggar <maged.elnaggar@arm.com> Change-Id: I99762484d7a02c24a4632a7a84b415a3842d02a3
This commit is contained in:
parent
24a77e8300
commit
5dbb34a16d
1 changed files with 1 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ public:
|
|||
m_allocator = nullptr;
|
||||
}
|
||||
std::swap(m_allocator, other.m_allocator);
|
||||
return *this;
|
||||
}
|
||||
|
||||
~swapchain_wsialloc_allocator()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue