From 2c35e17316ea5cc09f80458f73359b6d0dc57918 Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Tue, 26 Apr 2022 11:12:01 -0400 Subject: [PATCH] Check if sub_command_buffer is null before setting label (flutter/engine#163) --- engine/src/flutter/impeller/entity/entity_pass.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/impeller/entity/entity_pass.cc b/engine/src/flutter/impeller/entity/entity_pass.cc index 382cef3a033..eec666bc84d 100644 --- a/engine/src/flutter/impeller/entity/entity_pass.cc +++ b/engine/src/flutter/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);