Skip to content

Commit 00decb9

Browse files
committed
disp/vulkan: Use rethrow expression
Throwing the exception by name can cause unnecessary copying
1 parent 7b64bf1 commit 00decb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_display/vulkan/vulkan_context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ void VulkanContext::create_swap_chain(vk::SwapchainKHR&& old_swapchain) {
568568
device.destroy(old_swapchain);
569569
old_swapchain = nullptr;
570570
if(attempt + 1 == initialization_attempts){
571-
throw err;
571+
throw;
572572
}
573573
}
574574
}

0 commit comments

Comments
 (0)