fix weird compile error
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 20 Sep 2017 02:26:25 +0000 (19:26 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Wed, 20 Sep 2017 02:26:25 +0000 (19:26 -0700)
src/vulkan_icd/x11_wsi.cpp

index 5166f437bc0669e284df4084468575887dcbe472..9b2b76e37861a7372f9f6c01dbde8ec99f71aa23 100644 (file)
@@ -936,7 +936,7 @@ util::variant<VkResult, std::unique_ptr<Vulkan_swapchain>> Xcb_wsi::create_swapc
         return VK_ERROR_SURFACE_LOST_KHR;
     case Implementation::Swapchain::Status::Good:
     case Implementation::Swapchain::Status::Out_of_date: // we'll return out of date later
-        return swapchain;
+        return std::move(swapchain);
     }
     assert(!"unreachable");
     return {};