From 5feb99c55e964201433fc74a9576848f1446a2f9 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Mon, 29 Jul 2024 12:22:42 -0700 Subject: [PATCH] Revert "Set GLArea.has-alpha = true (#54053)" 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 0844c0a31d82ddd66dad8c564665d48c0b7118bc. --- shell/platform/linux/fl_renderer.cc | 2 +- shell/platform/linux/fl_view.cc | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/shell/platform/linux/fl_renderer.cc b/shell/platform/linux/fl_renderer.cc index e2a98753e6160..80bdbea2db06a 100644 --- a/shell/platform/linux/fl_renderer.cc +++ b/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/shell/platform/linux/fl_view.cc b/shell/platform/linux/fl_view.cc index 0eb08e0177dd8..77414b07cba45 100644 --- a/shell/platform/linux/fl_view.cc +++ b/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));