diff --git a/engine/src/flutter/impeller/entity/entity_pass.cc b/engine/src/flutter/impeller/entity/entity_pass.cc index a7cf79b09a..19b1a2efd1 100644 --- a/engine/src/flutter/impeller/entity/entity_pass.cc +++ b/engine/src/flutter/impeller/entity/entity_pass.cc @@ -226,6 +226,7 @@ static EntityPassTarget CreateRenderTarget(ContentContext& renderer, .storage_mode = StorageMode::kDevicePrivate, .load_action = LoadAction::kDontCare, .store_action = StoreAction::kDontCare, + .clear_color = clear_color, }, // color_attachment_config GetDefaultStencilConfig(readable) // stencil_attachment_config ); diff --git a/engine/src/flutter/impeller/renderer/render_target.cc b/engine/src/flutter/impeller/renderer/render_target.cc index 0b52640fff..46ca72b0a8 100644 --- a/engine/src/flutter/impeller/renderer/render_target.cc +++ b/engine/src/flutter/impeller/renderer/render_target.cc @@ -232,7 +232,7 @@ RenderTarget RenderTarget::CreateOffscreen( static_cast(TextureUsage::kShaderRead); ColorAttachment color0; - color0.clear_color = Color::BlackTransparent(); + color0.clear_color = color_attachment_config.clear_color; color0.load_action = color_attachment_config.load_action; color0.store_action = color_attachment_config.store_action; color0.texture = context.GetResourceAllocator()->CreateTexture(color_tex0);