Revert "background: Make the final monitor texture RGB instead of RGBA"

This reverts commit 93e938e22f.

The alpha channel is required for the background-color to show where the
background-image is not visible.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1911
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3459>
This commit is contained in:
Sebastian Wick 2023-12-18 13:26:50 +01:00 committed by Marge Bot
parent 14d84707fc
commit 5dc92aa134

View File

@ -823,7 +823,7 @@ meta_background_get_texture (MetaBackground *self,
monitor->texture = meta_create_texture (texture_width, monitor->texture = meta_create_texture (texture_width,
texture_height, texture_height,
COGL_TEXTURE_COMPONENTS_RGB, COGL_TEXTURE_COMPONENTS_RGBA,
META_TEXTURE_FLAGS_NONE); META_TEXTURE_FLAGS_NONE);
offscreen = cogl_offscreen_new_with_texture (monitor->texture); offscreen = cogl_offscreen_new_with_texture (monitor->texture);
monitor->fbo = COGL_FRAMEBUFFER (offscreen); monitor->fbo = COGL_FRAMEBUFFER (offscreen);