summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2020-08-14 08:23:47 -0400
committerGravatar Lioncash2020-08-14 08:23:49 -0400
commit167d36ec3c7732cb74fc97f01a916480f5760054 (patch)
tree166fe5d55b631eb8ef7c40983ea30f6ade9f82d4 /src
parentMerge pull request #4495 from lioncash/conv (diff)
downloadyuzu-167d36ec3c7732cb74fc97f01a916480f5760054.tar.gz
yuzu-167d36ec3c7732cb74fc97f01a916480f5760054.tar.xz
yuzu-167d36ec3c7732cb74fc97f01a916480f5760054.zip
vulkan/wrapper: Avoid unnecessary copy in EnumerateInstanceExtensionProperties()
Given this is implicitly creating a std::optional, we can move the vector into it.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/wrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/wrapper.cpp b/src/video_core/renderer_vulkan/wrapper.cpp
index 14cac38ea..43ace243b 100644
--- a/src/video_core/renderer_vulkan/wrapper.cpp
+++ b/src/video_core/renderer_vulkan/wrapper.cpp
@@ -786,7 +786,7 @@ std::optional<std::vector<VkExtensionProperties>> EnumerateInstanceExtensionProp
786 VK_SUCCESS) { 786 VK_SUCCESS) {
787 return std::nullopt; 787 return std::nullopt;
788 } 788 }
789 return properties; 789 return std::move(properties);
790} 790}
791 791
792std::optional<std::vector<VkLayerProperties>> EnumerateInstanceLayerProperties( 792std::optional<std::vector<VkLayerProperties>> EnumerateInstanceLayerProperties(