mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
Add alpha to wlr_render_with_matrix
so we can use the alpha channel to e.g. blend in textures
This commit is contained in:
parent
e6ca78b0e4
commit
d08792bfff
11 changed files with 18 additions and 17 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue