From 853222c175a3e3e51625965f6400f00c46d46a40 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Mon, 29 Jul 2024 13:09:04 -0700 Subject: [PATCH] Revert "Set GLArea.has-alpha = true (#54053)" (flutter/engine#54190) Reason for revert: Regression + no tests. Must have been at the end of a long day, cause I missed the missing test and glaring warning about that. This reverts commit 0325e590babb33963dc35283cd425b39290919e5. Re-opens https://github.com/flutter/flutter/issues/152154 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- engine/src/flutter/shell/platform/linux/fl_renderer.cc | 2 +- engine/src/flutter/shell/platform/linux/fl_view.cc | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/platform/linux/fl_renderer.cc b/engine/src/flutter/shell/platform/linux/fl_renderer.cc index e2a98753e6..80bdbea2db 100644 --- a/engine/src/flutter/shell/platform/linux/fl_renderer.cc +++ b/engine/src/flutter/shell/platform/linux/fl_renderer.cc @@ -445,7 +445,7 @@ void fl_renderer_render(FlRenderer* self, int width, int height) { g_return_if_fail(FL_IS_RENDERER(self)); - glClearColor(0.0, 0.0, 0.0, 0.0); + glClearColor(0.0, 0.0, 0.0, 1.0); glClear(GL_COLOR_BUFFER_BIT); if (priv->has_gl_framebuffer_blit) { diff --git a/engine/src/flutter/shell/platform/linux/fl_view.cc b/engine/src/flutter/shell/platform/linux/fl_view.cc index 0eb08e0177..77414b07cb 100644 --- a/engine/src/flutter/shell/platform/linux/fl_view.cc +++ b/engine/src/flutter/shell/platform/linux/fl_view.cc @@ -743,7 +743,6 @@ static void fl_view_init(FlView* self) { self); self->gl_area = GTK_GL_AREA(gtk_gl_area_new()); - gtk_gl_area_set_has_alpha(self->gl_area, TRUE); gtk_widget_show(GTK_WIDGET(self->gl_area)); gtk_container_add(GTK_CONTAINER(self->event_box), GTK_WIDGET(self->gl_area));