@@ -179,7 +179,7 @@ const std::optional<StencilAttachment>& RenderTarget::GetStencilAttachment()
179179
180180RenderTarget RenderTarget::CreateOffscreen (const Context& context,
181181 ISize size,
182- std::string label,
182+ const std::string& label,
183183 StorageMode color_storage_mode,
184184 LoadAction color_load_action,
185185 StoreAction color_store_action,
@@ -230,7 +230,7 @@ RenderTarget RenderTarget::CreateOffscreen(const Context& context,
230230 stencil0.texture ->SetLabel (SPrintF (" %s Stencil Texture" , label.c_str ()));
231231
232232 RenderTarget target;
233- target.SetColorAttachment (std::move ( color0) , 0u );
233+ target.SetColorAttachment (color0, 0u );
234234 target.SetStencilAttachment (std::move (stencil0));
235235
236236 return target;
@@ -239,7 +239,7 @@ RenderTarget RenderTarget::CreateOffscreen(const Context& context,
239239RenderTarget RenderTarget::CreateOffscreenMSAA (
240240 const Context& context,
241241 ISize size,
242- std::string label,
242+ const std::string& label,
243243 StorageMode color_storage_mode,
244244 StorageMode color_resolve_storage_mode,
245245 LoadAction color_load_action,
@@ -322,7 +322,7 @@ RenderTarget RenderTarget::CreateOffscreenMSAA(
322322 stencil0.texture ->SetLabel (SPrintF (" %s Stencil Texture" , label.c_str ()));
323323
324324 RenderTarget target;
325- target.SetColorAttachment (std::move ( color0) , 0u );
325+ target.SetColorAttachment (color0, 0u );
326326 target.SetStencilAttachment (std::move (stencil0));
327327
328328 return target;
0 commit comments