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 --- examples/touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/touch.c') diff --git a/examples/touch.c b/examples/touch.c index 3cf00e9c..278252cc 100644 --- a/examples/touch.c +++ b/examples/touch.c @@ -53,7 +53,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts (int)(p->x * width) - sample->cat_texture->width / 2, (int)(p->y * height) - sample->cat_texture->height / 2); wlr_render_with_matrix(sample->renderer, - sample->cat_texture, &matrix); + sample->cat_texture, &matrix, 1.0f); } wlr_renderer_end(sample->renderer); -- cgit v1.2.3