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:
parent
f0a9ec0519
commit
93e938e22f
@ -820,7 +820,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_RGBA,
|
COGL_TEXTURE_COMPONENTS_RGB,
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user