mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
video_core: vulkan: Fix Framebuffer move behaviour (#1865)
This commit is contained in:
parent
909e4b7e1f
commit
a3db3be4a6
1 changed files with 3 additions and 2 deletions
|
|
@ -295,7 +295,8 @@ public:
|
||||||
Framebuffer& operator=(const Framebuffer&) = delete;
|
Framebuffer& operator=(const Framebuffer&) = delete;
|
||||||
|
|
||||||
Framebuffer(Framebuffer&& other) noexcept
|
Framebuffer(Framebuffer&& other) noexcept
|
||||||
: instance(other.instance), images(std::exchange(other.images, {})),
|
: VideoCore::FramebufferParams(std::move(other)), instance(other.instance),
|
||||||
|
images(std::exchange(other.images, {})),
|
||||||
image_views(std::exchange(other.image_views, {})),
|
image_views(std::exchange(other.image_views, {})),
|
||||||
framebuffer(std::exchange(other.framebuffer, VK_NULL_HANDLE)),
|
framebuffer(std::exchange(other.framebuffer, VK_NULL_HANDLE)),
|
||||||
render_pass(std::exchange(other.render_pass, VK_NULL_HANDLE)),
|
render_pass(std::exchange(other.render_pass, VK_NULL_HANDLE)),
|
||||||
|
|
@ -307,7 +308,7 @@ public:
|
||||||
res_scale(std::exchange(other.res_scale, 1)) {}
|
res_scale(std::exchange(other.res_scale, 1)) {}
|
||||||
|
|
||||||
Framebuffer& operator=(Framebuffer&& other) noexcept {
|
Framebuffer& operator=(Framebuffer&& other) noexcept {
|
||||||
|
VideoCore::FramebufferParams::operator=(std::move(other));
|
||||||
images = std::exchange(other.images, {});
|
images = std::exchange(other.images, {});
|
||||||
image_views = std::exchange(other.image_views, {});
|
image_views = std::exchange(other.image_views, {});
|
||||||
framebuffer = std::exchange(other.framebuffer, VK_NULL_HANDLE);
|
framebuffer = std::exchange(other.framebuffer, VK_NULL_HANDLE);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue