mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-03-29 07:00:01 -06:00
video_core: vulkan: Fix Framebuffer move behaviour (#1865)
This commit is contained in:
parent
909e4b7e1f
commit
a3db3be4a6
@ -295,7 +295,8 @@ public:
|
||||
Framebuffer& operator=(const Framebuffer&) = delete;
|
||||
|
||||
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, {})),
|
||||
framebuffer(std::exchange(other.framebuffer, 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)) {}
|
||||
|
||||
Framebuffer& operator=(Framebuffer&& other) noexcept {
|
||||
|
||||
VideoCore::FramebufferParams::operator=(std::move(other));
|
||||
images = std::exchange(other.images, {});
|
||||
image_views = std::exchange(other.image_views, {});
|
||||
framebuffer = std::exchange(other.framebuffer, VK_NULL_HANDLE);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user