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

Commit dd4d705

Browse files
iskakaushikdnfield
authored andcommitted
Check if sub_command_buffer is null before setting label (#163)
1 parent 4c75fe6 commit dd4d705

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

impeller/entity/entity_pass.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,12 @@ bool EntityPass::Render(ContentContext& renderer,
197197

198198
auto sub_command_buffer = context->CreateRenderCommandBuffer();
199199

200-
sub_command_buffer->SetLabel("Offscreen Command Buffer");
201-
202200
if (!sub_command_buffer) {
203201
return false;
204202
}
205203

204+
sub_command_buffer->SetLabel("Offscreen Command Buffer");
205+
206206
auto sub_renderpass =
207207
sub_command_buffer->CreateRenderPass(subpass_target);
208208

0 commit comments

Comments
 (0)