render: Introduce wlr_render_texture_options.blend_mode

This commit is contained in:
Alexander Orzechowski 2023-06-19 13:16:34 -04:00
parent 693005ac99
commit 2044cc2311
5 changed files with 39 additions and 30 deletions

View file

@ -550,6 +550,8 @@ static void render_pass_add_texture(struct wlr_render_pass *wlr_pass,
.filter_mode = options->filter_mode,
},
.texture_transform = texture->transform,
.blend_mode = !texture->has_alpha && alpha == 1.0 ?
WLR_RENDER_BLEND_MODE_NONE : options->blend_mode,
});
if (!pipe) {
pass->failed = true;