Skip to content

Commit

Permalink
Check if sub_command_buffer is null before setting label (flutter#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored and dnfield committed Apr 27, 2022
1 parent 4c75fe6 commit dd4d705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impeller/entity/entity_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit dd4d705

Please sign in to comment.