From d08792bfffc6b7b28f59d7ee100091805367b7fa Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 21 Feb 2018 23:20:09 +0100 Subject: Add alpha to wlr_render_with_matrix so we can use the alpha channel to e.g. blend in textures --- rootston/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rootston') diff --git a/rootston/output.c b/rootston/output.c index a354ebf8..3fc8ea84 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -296,7 +296,7 @@ static void render_surface(struct wlr_surface *surface, double lx, double ly, pixman_box32_t *rects = pixman_region32_rectangles(&damage, &nrects); for (int i = 0; i < nrects; ++i) { scissor_output(output, &rects[i]); - wlr_render_with_matrix(renderer, surface->texture, &matrix); + wlr_render_with_matrix(renderer, surface->texture, &matrix, 1.0f); } damage_finish: -- cgit v1.2.3