diff --git a/impeller/entity/entity_pass.cc b/impeller/entity/entity_pass.cc index 382cef3a03386..eec666bc84d9e 100644 --- a/impeller/entity/entity_pass.cc +++ b/impeller/entity/entity_pass.cc @@ -197,12 +197,12 @@ bool EntityPass::Render(ContentContext& renderer, auto sub_command_buffer = context->CreateRenderCommandBuffer(); - sub_command_buffer->SetLabel("Offscreen Command Buffer"); - if (!sub_command_buffer) { return false; } + sub_command_buffer->SetLabel("Offscreen Command Buffer"); + auto sub_renderpass = sub_command_buffer->CreateRenderPass(subpass_target);