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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1665>
This commit is contained in:
Daniel van Vugt 2021-01-08 15:59:21 +08:00
parent f0a9ec0519
commit 93e938e22f

View File

@ -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);