Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 30e215f

Browse files
authored
Revert "Set GLArea.has-alpha = true (#54053)" (#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 0844c0a. Re-opens flutter/flutter#152154 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
1 parent 240fb46 commit 30e215f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

shell/platform/linux/fl_renderer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ void fl_renderer_render(FlRenderer* self, int width, int height) {
445445

446446
g_return_if_fail(FL_IS_RENDERER(self));
447447

448-
glClearColor(0.0, 0.0, 0.0, 0.0);
448+
glClearColor(0.0, 0.0, 0.0, 1.0);
449449
glClear(GL_COLOR_BUFFER_BIT);
450450

451451
if (priv->has_gl_framebuffer_blit) {

shell/platform/linux/fl_view.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,6 @@ static void fl_view_init(FlView* self) {
743743
self);
744744

745745
self->gl_area = GTK_GL_AREA(gtk_gl_area_new());
746-
gtk_gl_area_set_has_alpha(self->gl_area, TRUE);
747746
gtk_widget_show(GTK_WIDGET(self->gl_area));
748747
gtk_container_add(GTK_CONTAINER(self->event_box), GTK_WIDGET(self->gl_area));
749748

0 commit comments

Comments
 (0)