From e6ae945b92c15fb44b4a7901b2ed7e5bccc5a7d2 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 14 Nov 2024 13:47:13 +0300 Subject: [PATCH] Fix creating chained structs in wgpu --- libs/wgpu/include/psemek/wgpu/chained_struct.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/wgpu/include/psemek/wgpu/chained_struct.hpp b/libs/wgpu/include/psemek/wgpu/chained_struct.hpp index 173f5069..f13b0472 100644 --- a/libs/wgpu/include/psemek/wgpu/chained_struct.hpp +++ b/libs/wgpu/include/psemek/wgpu/chained_struct.hpp @@ -65,8 +65,8 @@ namespace psemek::wgpu struct chained_struct { template - chained_struct(T const & value) - : impl_(to_chained_struct(value)) + chained_struct(T && value) + : impl_(to_chained_struct(std::move(value))) {} void * ptr() const