video_core: vulkan: Fix Framebuffer move behaviour (#1865)

This commit is contained in:
PabloMK7 2026-03-11 23:36:03 +01:00 committed by GitHub
parent 909e4b7e1f
commit a3db3be4a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);