aboutsummaryrefslogtreecommitdiff
path: root/examples/output-layout.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2018-02-21 23:20:09 +0100
committerGuido Günther <agx@sigxcpu.org>2018-02-25 13:47:48 +0100
commitd08792bfffc6b7b28f59d7ee100091805367b7fa (patch)
tree33c514b2e9f70be4980614717093029f675fc7fd /examples/output-layout.c
parente6ca78b0e4b81e02958628c4b3b4db911b51714b (diff)
Add alpha to wlr_render_with_matrix
so we can use the alpha channel to e.g. blend in textures
Diffstat (limited to 'examples/output-layout.c')
-rw-r--r--examples/output-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/output-layout.c b/examples/output-layout.c
index 91ab80f4..45257be9 100644
--- a/examples/output-layout.c
+++ b/examples/output-layout.c
@@ -122,7 +122,7 @@ static void handle_output_frame(struct output_state *output,
wlr_texture_get_matrix(sample->cat_texture, &matrix,
&wlr_output->transform_matrix, local_x, local_y);
wlr_render_with_matrix(sample->renderer,
- sample->cat_texture, &matrix);
+ sample->cat_texture, &matrix, 1.0f);
}
wlr_renderer_end(sample->renderer);