diff --git a/src/video_core/texture_cache/image.h b/src/video_core/texture_cache/image.h index 1f29d0d4..74c9cf5d 100644 --- a/src/video_core/texture_cache/image.h +++ b/src/video_core/texture_cache/image.h @@ -53,9 +53,14 @@ struct UniqueImage { UniqueImage(const UniqueImage&) = delete; UniqueImage& operator=(const UniqueImage&) = delete; - UniqueImage(UniqueImage&& other) : image{std::exchange(other.image, VK_NULL_HANDLE)} {} + UniqueImage(UniqueImage&& other) + : image{std::exchange(other.image, VK_NULL_HANDLE)}, + allocator{std::exchange(other.allocator, VK_NULL_HANDLE)}, + allocation{std::exchange(other.allocation, VK_NULL_HANDLE)} {} UniqueImage& operator=(UniqueImage&& other) { image = std::exchange(other.image, VK_NULL_HANDLE); + allocator = std::exchange(other.allocator, VK_NULL_HANDLE); + allocation = std::exchange(other.allocation, VK_NULL_HANDLE); return *this; }