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 0325e590ba.
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
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user