From: Jacob Lifshay Date: Wed, 20 Sep 2017 02:26:25 +0000 (-0700) Subject: fix weird compile error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=048f9017308ce2327971bb90c01f68880035e3f5;p=kazan.git fix weird compile error --- diff --git a/src/vulkan_icd/x11_wsi.cpp b/src/vulkan_icd/x11_wsi.cpp index 5166f43..9b2b76e 100644 --- a/src/vulkan_icd/x11_wsi.cpp +++ b/src/vulkan_icd/x11_wsi.cpp @@ -936,7 +936,7 @@ util::variant> 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 {};