From fffe7e4cb9f5f5620901297825e5600111435bf8 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Mon, 27 Mar 2023 12:46:32 -0700 Subject: [PATCH] [Impeller] initialize text alpha to 1.0 (flutter/engine#40667) [Impeller] initialize text alpha to 1.0 --- engine/src/flutter/impeller/entity/contents/text_contents.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/impeller/entity/contents/text_contents.h b/engine/src/flutter/impeller/entity/contents/text_contents.h index b36cc83604..8349842cf8 100644 --- a/engine/src/flutter/impeller/entity/contents/text_contents.h +++ b/engine/src/flutter/impeller/entity/contents/text_contents.h @@ -56,7 +56,7 @@ class TextContents final : public Contents { private: TextFrame frame_; Color color_; - Scalar inherited_opacity_; + Scalar inherited_opacity_ = 1.0; mutable std::shared_ptr lazy_atlas_; Matrix inverse_matrix_;