From 93e938e22fa2cf1c13c3abde49e174f31b3c5f0f Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Fri, 8 Jan 2021 15:59:21 +0800 Subject: [PATCH] background: Make the final monitor texture RGB instead of RGBA The monitor texture is the final background image. It doesn't need to have any alpha channel. Cross-fades (which is the process of rendering *into* the monitor texture) still work just fine. Part-of: --- src/compositor/meta-background.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor/meta-background.c b/src/compositor/meta-background.c index 1a677fe18..c0d8d335d 100644 --- a/src/compositor/meta-background.c +++ b/src/compositor/meta-background.c @@ -820,7 +820,7 @@ meta_background_get_texture (MetaBackground *self, monitor->texture = meta_create_texture (texture_width, texture_height, - COGL_TEXTURE_COMPONENTS_RGBA, + COGL_TEXTURE_COMPONENTS_RGB, META_TEXTURE_FLAGS_NONE); offscreen = cogl_offscreen_new_with_texture (monitor->texture); monitor->fbo = COGL_FRAMEBUFFER (offscreen);