[Impeller] add missing std::move in setup depth stencil. (flutter/engine#50750)

We copy the std::shared_ptr since both the stencil and depth attachments need to reference this shared ptr. The second usage can still be moved to avoid a shared_ptr release.
This commit is contained in:
Jonah Williams
2024-02-20 09:29:19 -08:00
committed by GitHub
parent f3ad50c810
commit 7df4674f94

View File

@@ -394,7 +394,7 @@ void RenderTarget::SetupDepthStencilAttachments(
stencil0.load_action = stencil_attachment_config.load_action;
stencil0.store_action = stencil_attachment_config.store_action;
stencil0.clear_stencil = 0u;
stencil0.texture = depth_stencil_texture;
stencil0.texture = std::move(depth_stencil_texture);
stencil0.texture->SetLabel(
SPrintF("%s Depth+Stencil Texture", label.c_str()));