Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 33afdc6

Browse files
committed
Remove extra RT copy
1 parent 86e9f48 commit 33afdc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

impeller/renderer/backend/metal/surface_mtl.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@
110110
color0.store_action = StoreAction::kMultisampleResolve;
111111
color0.resolve_texture = std::move(resolve_tex);
112112

113-
RenderTarget render_target_desc;
114-
render_target_desc.SetColorAttachment(color0, 0u);
113+
auto render_target_desc = std::make_optional<RenderTarget>();
114+
render_target_desc->SetColorAttachment(color0, 0u);
115115

116116
return render_target_desc;
117117
}

0 commit comments

Comments
 (0)