mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-22 01:58:12 +02:00
gl-renderer: Ignore transparent paint nodes
Skip these completely during repaint, since they by definition won't have any effect. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
30a807b86f
commit
1377fdf20d
1 changed files with 6 additions and 0 deletions
|
|
@ -1903,6 +1903,12 @@ draw_paint_node(struct weston_paint_node *pnode,
|
|||
if (!pixman_region32_not_empty(&repaint))
|
||||
goto out;
|
||||
|
||||
if (pnode->view->alpha == 0.0f ||
|
||||
(pnode->draw_solid && pnode->solid.a == 0.0f)) {
|
||||
gs->used_in_output_repaint = true; /* sort of */
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (ensure_surface_buffer_is_ready(gr, gs, pnode) < 0)
|
||||
goto out;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue