mirror of
https://github.com/brl/mutter.git
synced 2025-01-27 03:49:03 +00:00
shaped-texture: Use actual texture if tower returned NULL
The texture tower can return no texture e.g. if the calculated level is negative. This was handled before, but regressed with e1370ee209ddf4b864c7275f0d67d8ab64d59029. This fixes a potential crash observed occasionally when starting Firefox nightly using the Wayland backend in overview mode.
This commit is contained in:
parent
173867c12b
commit
490f27efcb
@ -733,6 +733,8 @@ meta_shaped_texture_paint (ClutterActor *actor)
|
||||
stex->fast_updates < MIN_FAST_UPDATES_BEFORE_UNMIPMAP)
|
||||
{
|
||||
paint_tex = meta_texture_tower_get_paint_texture (stex->paint_tower);
|
||||
if (!paint_tex)
|
||||
paint_tex = stex->texture;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user