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:
Daniel Stone 2025-10-02 18:30:36 +02:00
parent 30a807b86f
commit 1377fdf20d

View file

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