From 2044cc2311ad534f8f188f8d486f1ce7aa3e1421 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 19 Jun 2023 13:16:34 -0400 Subject: render: Introduce wlr_render_texture_options.blend_mode --- render/vulkan/pass.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'render/vulkan/pass.c') diff --git a/render/vulkan/pass.c b/render/vulkan/pass.c index 7ac5cf95..bfb3628f 100644 --- a/render/vulkan/pass.c +++ b/render/vulkan/pass.c @@ -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; -- cgit v1.2.3