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

Commit be3e630

Browse files
committed
Better conditional
1 parent 00ca516 commit be3e630

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

impeller/entity/entity_pass.cc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,10 @@ EntityPass::EntityResult EntityPass::GetEntityForElement(
322322
return EntityPass::EntityResult::Skip();
323323
}
324324

325-
RenderTarget subpass_target;
326-
if (subpass->reads_from_pass_texture_ > 0) {
327-
subpass_target =
328-
CreateRenderTarget(renderer, ISize(subpass_coverage->size), true);
329-
} else {
330-
subpass_target =
331-
CreateRenderTarget(renderer, ISize(subpass_coverage->size), false);
332-
}
325+
auto subpass_target =
326+
CreateRenderTarget(renderer, //
327+
ISize(subpass_coverage->size), //
328+
subpass->reads_from_pass_texture_ > 0);
333329

334330
auto subpass_texture = subpass_target.GetRenderTargetTexture();
335331

0 commit comments

Comments
 (0)