mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Check if sub_command_buffer is null before setting label (flutter/engine#163)
This commit is contained in:
parent
8d8404677a
commit
2c35e17316
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user