From b80d4f4c8de357fff49a67d3dc148abe94a7bf88 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 6 Jun 2024 12:16:29 -0500 Subject: [PATCH] gl-renderer: Use calculated opaque region instead raw opaque region These should effectively be the same, thought the one we've calculated may be clipped with the scissor. The end result of the math should be identical. Signed-off-by: Derek Foreman --- libweston/renderer-gl/gl-renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c index ab921edf..e40b91f3 100644 --- a/libweston/renderer-gl/gl-renderer.c +++ b/libweston/renderer-gl/gl-renderer.c @@ -1605,7 +1605,7 @@ draw_paint_node(struct weston_paint_node *pnode, pixman_region32_intersect(&surface_blend, &surface_blend, &pnode->view->geometry.scissor); pixman_region32_subtract(&surface_blend, &surface_blend, - &pnode->surface->opaque); + &surface_opaque); maybe_replace_paint_node(&sconf, pnode);